def histogram(
df: pd.DataFrame,
x: str,
media: str,
bins: int = 20,
color: Optional[str] = None,
bounding_box: Optional[str] = None,
title: Optional[str] = None,
show: bool = True,
) -> Path:
df: pd.DataFrame
x: str
media: str
bins: int = 20
color: Optional[str] = None
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.histogram(df, x="brightness", media="img_path")