📜  水平打印数据框行 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:54.770000             🧑  作者: Mango

代码示例1
#supppsing data is the dataframe here below:

#         day  temp condition
# 0     Monday    12     Sunny
# 1    Tuesday    14      Rain
# 2  Wednesday    15      Rain
# 3   Thursday    14    Cloudy
# 4     Friday    21     Sunny
# 5   Saturday    22     Sunny
# 6     Sunday    24     Sunny

print(data[data.day == "Monday"])

      day  temp condition
0  Monday    12     Sunny