python - Plotting grouped data by date -


i'm trying plot counts of pandas dataframe columns, grouped date:

by_date = data.groupby(data.index.day).count()

result

the data correct, the data.index.day specified no plotting purposes:

enter image description here

is there way of specifying want group python date objects, or doing wrong?

update: dan allan's resample suggestion worked, the xticks unreadable. should extracting them separately?

enter image description here

i think task more accomplished using resample, not group. how about

data.resample('d', how='count') 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -