Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 667 Bytes

File metadata and controls

34 lines (25 loc) · 667 Bytes

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