Create animated and pretty Pandas Dataframe
Project description
Rich DataFrame
Create animated and pretty Pandas Dataframe or Pandas Series, as shown below:
Installation
pip install rich-dataframe
Usage
Minimal example
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)
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 toFalse
, 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 toFalse
, show last n rows. - delay_time : int, optional
How fast is the animation, by default
5
. Increase this to have slower animation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rich-dataframe-0.1.9.5.tar.gz
(7.8 kB
view hashes)
Built Distribution
Close
Hashes for rich_dataframe-0.1.9.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43833916f95585e7b2cbc423ecec2ef7ca5e2be43197324671b9f4f3a2fae5a8 |
|
MD5 | 2c8f5e8aaae687fc3bac95c7d4c03ebe |
|
BLAKE2b-256 | 91a23c49da36616b553e27e164c0e027d983993aa0e1daaeff731c2f239b5f54 |