dexplo / bar_chart_race

Create animated bar chart races in Python with matplotlib
MIT License
1.35k stars 351 forks source link

Maybe a have a preview / draft keyword argument #5

Closed ahuang11 closed 4 years ago

ahuang11 commented 4 years ago

Nice package! One suggestion I have is to have a preview keyword that either only does the head of the pandas dataframe or have it skip half the frames because after taking a while to export the gif, I realized the labels were all crammed and the data doesn't really start until a later date (i.e. the bars were all at 0).

tdpetrou commented 4 years ago

Hey Andrew,

I would suggest using the DataFrame.head method before passing in the entire DataFrame. You can also change the figsize and labelsize.

You can also select a subsets of your dataframe, i.e. df.iloc[20:30]