pd.to_datetime():選取某時(shí)間段數(shù)據(jù)分析
DataFrame.index.sort_values():索引排序
Data.Frame[['標(biāo)簽']]:提取特定標(biāo)簽數(shù)據(jù)
Data.Frame[['標(biāo)簽','標(biāo)簽',···]]:提取多元數(shù)據(jù)
Data.Frame['參數(shù)']:數(shù)據(jù)
pd_datas.iloc[0:2,0:3]:DataFrame范圍切片取值; 0:2取前兩行,0:3取前三列
DataFrame['標(biāo)簽'].tolist():DataFrame轉(zhuǎn)列表list
axis:axis=0代表按照行操作埃疫,axis=1代表按照列操作
DataFrame[['標(biāo)簽','標(biāo)簽',···]].iloc[0:10,0:9].values.tolist :表示抽取某標(biāo)簽列數(shù)據(jù)的值砸泛,將每行數(shù)據(jù)轉(zhuǎn)換為列表
DataFrame.values:返回一個(gè)數(shù)組
轉(zhuǎn)換:
tolist():轉(zhuǎn)換為列表
tostring():轉(zhuǎn)換為字符串
排序:
DataFrame.sort_index():按照索引排序