Skip to content

Latest commit

 

History

308 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flatbread

Pandas extension for aggregation and tabular display. Access it through the pita accessor on DataFrames and Series.

Documentation

Installation

pip install flatbread

Quick example

import pandas as pd
import flatbread

result = (
    df
    .pita.add_totals()
    .pita.add_subtotals(level=0)
    .pita.add_percentages(interleaf=True)
)

Features

  • Totals and subtotals (rows and columns)
  • Percentages, differences, percentage change
  • Custom aggregations
  • Layered configuration (defaults, user, project)
  • Interactive table display for Jupyter notebooks

About

Python library extending pivot/cross tables in Pandas. Easily add totals/subtotals and percentages to your tables.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages