
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Flatbread is a Python library that extends pandas with tabulation features. It makes it easy to create and display summary tables with totals, subtotals, percentages, and aggregations.
Flatbread can be accessed in DataFrames
and Series
using the pita
accessor.
It uses the wc-simple-table dataviewer web component to display tables in a notebook: check out some examples.
import pandas as pd
import flatbread
df = pd.DataFrame(...)
# Add totals and percentages
result = (
df
.pita.add_totals() # Add grand totals
.pita.add_subtotals(level=0) # Add subtotals by first index level
.pita.add_percentages() # Add percentage columns
)
# Display with interactive viewer
result.pita.configure_display(
locale="en-US",
show_hover=True,
section_levels=1
)
pip install flatbread
add_totals()
add_subtotals()
add_percentages()
add_agg()
FAQs
Pandas extension for aggregation and tabular display
We found that flatbread demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.