# Lightweight Python module for generating interactive Pareto charts from DataFrames

**URL:** <https://community.plotly.com/t/lightweight-python-module-for-generating-interactive-pareto-charts-from-dataframes/93238>\
**Category:** 📊 Plotly Python\
**Tags:** community-components\
**Created:** [July 20, 2025, 7:20am UTC](https://community.plotly.com/t/lightweight-python-module-for-generating-interactive-pareto-charts-from-dataframes/93238 "2025-07-20T07:20:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomasz\_Sl](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/tomasz_sl/32/32224_2.png) [@Tomasz\_Sl](https://community.plotly.com/u/Tomasz_Sl)\
**Post date:** [July 20, 2025, 7:20am UTC](https://community.plotly.com/t/lightweight-python-module-for-generating-interactive-pareto-charts-from-dataframes/93238/1 "2025-07-20T07:20:30Z")

</div>

I’d like to share a Python module I just released for easily generating interactive Pareto charts from data frames. The result allows you to select columns for the chart from a dropdown list—great for comparing variable distributions.  
 ![gapminder](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/f/2/f2716b8c9bd23c1bb98203b936495ffb7245a7fb.gif)

Basically, this module only uses **Plotly.js** and templates (not Plotly Python), but it might still be useful for Python users.

Below is the complete code to generate the attached chart.

```auto
import interpareto as ipar
from vega_datasets import data 
df = data.gapminder_health_income()
df.set_index('country', inplace=True)
ipar.render(df, 'Gapminder.html', title='Pareto of Global Income vs Population – Gapminder 2013')

```

I needed to generate interactive Pareto charts on shared hosting—where installing Plotly wasn’t an option—so that’s how this module came to be.

Source, demo:

> **[GitHub - ts-kontakt/interpareto: Python utility for creating interactive Pareto...](https://github.com/ts-kontakt/interpareto)**
>
> Python utility for creating interactive Pareto charts from pandas.DataFrame objects

It’s also available on PyPI
