Create animated and pretty Pandas Dataframe
Create animated and pretty Pandas Dataframe or Pandas Series, as shown below:
pip install rich-dataframe
from sklearn.datasets import fetch_openml
from rich_dataframe import prettify
speed_dating = fetch_openml(name='SpeedDating', version=1)['frame']
table = prettify(speed_dating)
If you want to pass a non-dataframe object, rich_dataframe
got it covered too!
from rich_dataframe import prettify
var = {'a': 1, 'b': 3}
prettify(var)
20
10
True
. If this is set to False
, show last n rows.True
. If this is set to False
, show last n rows.5
. Increase this to have slower animation.