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-dataframe-0.2.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rich_dataframe-0.2.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file rich-dataframe-0.2.0.tar.gz.

File metadata

  • Download URL: rich-dataframe-0.2.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.1 Linux/5.4.0-77-generic

File hashes

Hashes for rich-dataframe-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0fa72373c191b8c14eeec11cb3db65c782215f87ff18745eab61e3b6673e1df3
MD5 3c5352dc94189f277e9e6d27ee4b4f9a
BLAKE2b-256 7a29a04df185991c8ca456767434fbe79cdd7be2c467e2a61cfaac6cfcb086c2

See more details on using hashes here.

File details

Details for the file rich_dataframe-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: rich_dataframe-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.1 Linux/5.4.0-77-generic

File hashes

Hashes for rich_dataframe-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 257bea828316df1a878f6481fbd248a40597997b8213063e97b21c81430d7b55
MD5 f64b7c78b3cef093561365ab7df9f258
BLAKE2b-256 aec9a118b871f0e311f48e5eaa3fe5ec061d7fec9546520d9628001969ef9960

See more details on using hashes here.

Supported by

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