Answers for "How to make plot using the groupby in python"

0

how plot graph by using group by function in python

#plot data
fig, ax = plt.subplots(figsize=(15,7))
data.groupby(['date','type']).count()['amount'].plot(ax=ax)
Posted by: Guest on May-30-2020
0

how plot graph by using group by function in python

# plot data
fig, ax = plt.subplots(figsize=(15,7))
# use unstack()
data.groupby(['date','type']).count()['amount'].unstack().plot(ax=ax)
Posted by: Guest on May-30-2020

Code answers related to "How to make plot using the groupby in python"

Python Answers by Framework

Browse Popular Code Answers by Language