Skip to main content

Pretty Print DataFrames

Project description

PrettyDF Package

The PrettyDF package is a Python library crafted by DawnSaju, designed to enhance the visual representation of pandas DataFrames. It provides a set of tools to make your DataFrames more readable and visually appealing.

Installation

You can install the PrettyDF package via pip:

pip install PrettyDF

Usage

Import the required functions from the package in your Python script:

from PrettyDF import table

You can then use the hello function to print a greeting to the current user:

hello()

And the table function to display your DataFrame in a tabular format:

import pandas as pd

data = pd.DataFrame({
    'Name': ['John', 'Anna', 'Peter'],
    'Age': [28, 24, 35],
    'City': ['New York', 'Paris', 'Berlin']
})

table(data)

Functions

table(df)

This function takes a pandas DataFrame as an argument, and returns the structured DataFrame in a tabular format.

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

PrettyDF-1.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

PrettyDF-1.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file PrettyDF-1.1.tar.gz.

File metadata

  • Download URL: PrettyDF-1.1.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.3

File hashes

Hashes for PrettyDF-1.1.tar.gz
Algorithm Hash digest
SHA256 2500120c18853eeeb37e2f22329b0f09f2ecf0fb46a6edb01fc2eb6d3748f479
MD5 c964f751c33c849197fae15f87b665b3
BLAKE2b-256 d38a001eb140212e89c9d2b6738d4d0dd4edd6a795022d6a524ecabd85717fed

See more details on using hashes here.

File details

Details for the file PrettyDF-1.1-py3-none-any.whl.

File metadata

  • Download URL: PrettyDF-1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.3

File hashes

Hashes for PrettyDF-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d6214c9e4884a5a0eaac44d01b3595c902fba3b11ae2a08e04344b3f4504d4ac
MD5 dab036b4b95ffd88df2e90b5fa8d24cb
BLAKE2b-256 7be1db53107d1de8983e434db0ec0a477e5d0b17f3c8d44d4c0298f4e8993c02

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