Python Panda - 学习笔记

#Group by Function
df.groupby('Date')[['Date']].count()
df.groupby('Date')[['Date']].sum() # if it can be sumable

#Sort Function
type(df['Date'])
<class 'pandas.core.series.Series'>
df['Date'].sort_values()

#View all types of each Column
df.dtypes

#Change Col Type to DateTime
pd.to_datetime(df['Date'])

 

posted @ 2016-01-28 15:17  西番莲果汁  阅读(1201)  评论(0编辑  收藏  举报