def pie(
df: pd.DataFrame,
color: str,
media: str,
bounding_box: Optional[str] = None,
title: Optional[str] = None,
show: bool = True,
) -> Path:
df: pd.DataFrame
color
media: str
bounding_box: Optional[str] = None
xmin: Union[float, int]
ymin: Union[float, int]
xmax: Union[float, int]
ymax: Union[float, int]
label: Optional[str] = None
color: Optional[str] = None
title: Optional[str] = None
show: bool = True
True
, we will start a local server to display the plot in a web browser. False
, we only save the required data to serve the plot later on and return the path to where the data is stored. clusterfun serve {path-to-data}|{uuid}
in the command line to start a local server for the plot you are interested in.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")