• Stars
    star
    415
  • Rank 104,301 (Top 3 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 9 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Pandas Styler class for making beautiful tables

Pretty Pandas

Testing Status Documentation Status Supported Versions PyPI

PrettyPandas is a Pandas DataFrame Styler class that helps you create report quality tables with a simple API.

(
   df
   .pipe(PrettyPandas)
   .as_currency('GBP', subset='A')
   .as_percent(subset='B')
   .total()
   .average()
)

Features

  • Add summary rows and columns.
  • A nice and customizable theme.
  • Number formatting for currency, scientific units, and percentages.
  • Chaining commands.
  • Works seamlessly with Pandas Style API.

Installation

You can install PrettyPandas using pip with support for Python 2.7, 3.3, 3.4, and 3.5:

pip install prettypandas

You can also install from source:

git clone [email protected]:HHammond/PrettyPandas.git
cd PrettyPandas
python setup.py install

Documentation

Documentation is hosted on Read the Docs.