题解 | #筛选618的订单#
筛选618的订单
https://www.nowcoder.com/practice/bdb3f8d5752b45c3bc6c40049580553e
from datetime import date import pandas as pd df = pd.read_csv("Order.csv", sep=",", dtype=object) result = df.loc[ df["date"] == "2022/6/18", ["price", "shop_name"] ] # 第一个参数选取哪些行,第二个参数选取哪些列 print(result)