Skip to content
项目

关于

A Pandas Styler class for making beautiful tables

数据与分析

这些数字如何统计

可以做什么

  • Add summary rows and columns.
  • A nice and customizable theme.
  • Number formatting for currency, scientific units, and percentages.
  • Chaining commands.

实测星标增长

24小时
0
7天
0
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

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 [email protected]:HHammond/PrettyPandas.git
cd PrettyPandas
python setup.py install

Documentation

Documentation is hosted on Read the Docs.

探索相关项目

加载中…