题解 | #按照毕业年份与使用语言筛选牛客网7级用户#
按照毕业年份与使用语言筛选牛客网7级用户
https://www.nowcoder.com/practice/309697cf5250403e927a1a41627cb73f
import pandas as pd df = pd.read_csv("Nowcoder.csv", sep=",") pd.set_option("display.width", 300) pd.set_option("display.max_rows", None) pd.set_option("display.max_columns", None) data = df.loc[ (df["Level"] == 7) & (df["Language"] == "CPP") & (df["Graduate_year"] != 2018) ] print(data)#悬赏#