Pie chart


def pie(
    df: pd.DataFrame,
    color: str,
) -> Path:
Parameters
  • df: pd.DataFrame
    The dataframe with the data to plot
  • color
    Column for the pies of the pie chart
Example
import pandas as pd
import clusterfun as clt

df = pd.read_csv("https://raw.githubusercontent.com/gietema/clusterfun-data/main/wiki-art.csv")
clt.pie_chart(df, color="painter", media="img_path")