Create animated and pretty Pandas Dataframe
Project description
Rich DataFrame
Create animated and pretty Pandas Dataframe, as shown below:
Installation
pip install rich-dataframe
Usage
Minimal example
from sklearn.datasets import fetch_openml
from rich_dataframe import DataFramePrettify
if __name__=='__main__':
speed_dating = fetch_openml(name='SpeedDating', version=1)['frame']
table = DataFramePrettify(speed_dating, row_limit=20, first_rows=True, delay_time=5).prettify()
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.
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.6.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for rich_dataframe-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b89f3aab5c2875156a901a77bfb504d64bb7a16c4cc58c4cc978b5c8ed2c9f7 |
|
MD5 | d71321dd989531d0d7cafa107c02e8a8 |
|
BLAKE2b-256 | 62787c9d54cef56776d431a79c13783d44712f805f694902979b9de1aa0ae139 |