khuyentran1401
rich-dataframe
Python

Create animated and pretty Pandas Dataframe

Last updated Nov 19, 2025
119
Stars
26
Forks
4
Issues
0
Stars/day
Attention Score
44
Language breakdown
No language data available.
Files click to expand
README

Code style: black License: Apache-2.0

Rich DataFrame

Create animated and pretty Pandas Dataframe or Pandas Series, as shown below:

image

Installation

pip install rich-dataframe

Usage

Minimal example

from sklearn.datasets import fetch_openml
from rich_dataframe import prettify

speeddating = fetchopenml(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)

image

Parameters

  • df: pd.DataFrame
The data you want to prettify
  • row_limit : int, optional
Number of rows to show, by default 20
  • col_limit : int, optional
Number of columns to show, by default 10
  • first_rows : bool, optional
Whether to show first n rows or last n rows, by default True. If this is set to False, show last n rows.
  • first_cols : bool, optional
Whether to show first n columns or last n columns, by default True. If this is set to False, show last n rows.
  • delay_time : int, optional
How fast is the animation, by default 5. Increase this to have slower animation.
  • clear_console: bool, optional
Clear the console before printing the table, by default True. If this is set to false the previous console input/output is maintained

🔗 More in this category

© 2026 GitRepoTrend · khuyentran1401/rich-dataframe · Updated daily from GitHub