Metadata-Version: 2.1
Name: rich-dataframe
Version: 0.1.9.6
Summary: Create animated and pretty Pandas Dataframe
Home-page: https://github.com/khuyentran1401/rich-dataframe
License: Apache-2.0
Keywords: pandas
Author: khuyentran1401
Author-email: khuyentran1476@gmail.com
Requires-Python: >=3.7.1,<4.0.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: pandas (>=1.2.2,<2.0.0)
Requires-Dist: rich (>=9.10.0,<10.0.0)
Requires-Dist: sklearn (>=0.0,<0.1)
Project-URL: Repository, https://github.com/khuyentran1401/rich-dataframe
Description-Content-Type: text/markdown

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
[![License: Apache-2.0](https://img.shields.io/badge/Apache-2.0%20v3-blue.svg)](https://github.com/khuyentran1401/rich-dataframe/blob/master/LICENSE)

# Rich DataFrame

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

![image](https://github.com/khuyentran1401/rich-dataframe/blob/master/images/prettify_table.gif?raw=True)

# Installation
```bash
pip install rich-dataframe
```
# Usage
## Minimal example
```python
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!
```python 
from rich_dataframe import prettify

var = {'a': 1, 'b': 3}
prettify(var)
```
![image](https://github.com/khuyentran1401/rich-dataframe/blob/master/images/non_dataframe.png?raw=True)
## 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.


