题解 | 查看牛客网哪些用户使用Python
# 方法一:布尔索引进行逻辑运算
import pandas as pd
data = pd.read_csv('Nowcoder.csv',dtype=object)
print(data[data['Language']=='Python'])
# 方法二:逻辑运算函数
import pandas as pd
data = pd.read_csv('Nowcoder.csv',dtype=object)
print(data.query("Language =='Python'"))