24
loading...
This website collects cookies to deliver better user experience
pip install jupyter\_to\_medium
jupyter bundlerextension enable --py jupyter\_to\_medium.\_bundler --sys-prefix
import bar\_chart\_race as bcr
df = bcr.load\_dataset('covid19')
df = df.iloc[-15:-10, ::3]
df
df.style.highlight\_max()
import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(4, 2.5), dpi=144)
df.loc['2020-04-12'].sort\_values().plot(kind='barh', ax=ax, width=.8);
from IPython.display import Image
bcr.bar\_chart\_race(df, 'docs/images/covid19.gif', figsize=(4, 2.5))
Image(filename='docs/images/covid19.gif')