- 数据读取
df=pd.read_excel()
df=pd.read_csv('target_file.csv',encoding='utf8')
- column选取
df['column1']
df[['column1','column2']]
df[0:n] #取第0到n-1行
df[['column1','column2']].iloc[0:2]
df[['column1','column2']][df['column']>1000].head(100) #按照条件查询,相当于if...和sql的where
df[['column1','column2']][df['column']>1000].count #统计符合条件的数量
df[df['title'].a