A Pandas Styler class for making beautiful tables
Clone or download
Latest commit 99a814f Mar 26, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs update readme.txt Mar 24, 2018
prettypandas expand axis detection Mar 24, 2018
test Refactor codebase Mar 24, 2018
.gitignore Update gitignore Mar 24, 2018
.travis.yml update dependencies Mar 24, 2018
README.txt update readme.txt Mar 24, 2018
Readme.md docs Mar 24, 2018
license.md Add MIT License Jan 16, 2016
requirements.txt update requirements.txt Mar 26, 2018
setup.py update dependencies Mar 24, 2018

Readme.md

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 git@github.com:HHammond/PrettyPandas.git
cd PrettyPandas
python setup.py install

Documentation

Documentation is hosted on Read the Docs.