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()
the data correct, the data.index.day
specified no plotting purposes:
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?
i think task more accomplished using resample
, not group
. how about
data.resample('d', how='count')
Comments
Post a Comment