私信  •  关注

prateek singh

prateek singh 最近创建的主题
prateek singh 最近回复了

如果根据列中的某个整数查找行,则

df.loc[df['column_name'] == 2017]

如果要根据字符串查找值

df.loc[df['column_name'] == 'string']

如果基于两者

df.loc[(df['column_name'] == 'string') & (df['column_name'] == 2017)]