arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Visualization

Exemplar data: COVID-19 case and death data (date: 202012006)

hashtag
Bar Chart

Tutorial: pandas.DataFrame.plot.bararrow-up-right

#Bar Chart
#bar_1 = df_state_1.plot.bar()
bar_2 = df_state_1.plot.bar(x='state', y='cases', rot=90, figsize=(20,3))
Example: COVID-19 Num. of Cases 2020-12-06 (United States on State Level)

hashtag
Line Chart

Tutorial:

hashtag
Scatter Plot Chart

Tutorial:

pandas.DataFrame.plot.linearrow-up-right
pandas.DataFrame.plot.scatterarrow-up-right
Example: COVI19 Num. of Cases 2020-12-06 (United States on State Level)
Example: COVID-19 Num. of Cases & Deaths 2020-12-06 (United States State Level)
#Syntax: DataFrame.plot.line(x=None, y=None, **kwds)
line_1 = df_state_1.plot.line(y='deaths',x='state', rot=90, figsize=(10,3))
line_2 = df_state_1.plot.line(subplots=True,x='state', rot=90,figsize=(10,5))
#Syntax: DataFrame.plot.scatter(x, y, s=None, c=None, **kwargs)
scatter = df_state_1.plot.scatter(x='cases', y='deaths')