Skip to main content

Create animated and pretty Pandas Dataframe

Project description

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

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)

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rich_dataframe2-0.2.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

rich_dataframe2-0.2.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file rich_dataframe2-0.2.1.tar.gz.

File metadata

  • Download URL: rich_dataframe2-0.2.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0

File hashes

Hashes for rich_dataframe2-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d4935993cb213463e0bf0972569a2667ebe18c672d2cef67a6932a22aff695a5
MD5 a402b0b3e7ddb9366c6baafe962a6eb9
BLAKE2b-256 63a34e9b80e507b6033269f80637c8a91a65f36ab5ca11333baabb6fc89eabc9

See more details on using hashes here.

File details

Details for the file rich_dataframe2-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: rich_dataframe2-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0

File hashes

Hashes for rich_dataframe2-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 effb7f4535631c043bc2e35c9fd8d64d6c1778ce67d3d2f6a80940f7dffb9f0b
MD5 55049614225f657ef6320d7a8707d7c7
BLAKE2b-256 aa42a1e6ddf9d27ba756fff944df0f4d0fb8c4b801de6f0a14670958877ad257

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page