Skip to content

Load dataset

dayplot provides a minimalist dataset with daily data, primarily for use in documentation.


dayplot.load_dataset(backend='pandas', **kwargs)

Load a simple dataset with fake daily data. This function is a simple wrapper around the narwhals.read_csv() function.

Parameters:

Name Type Description Default
backend str

The output format of the dataframe. Note that, for example, if you set backend="polars", you must have polars installed. Must be one of the following: "pandas", "polars", "pyarrow", "modin", "cudf". Default to "pandas".

'pandas'
kwargs

Additional arguments passed to narwhals.read_csv().

{}

Returns:

Type Description
IntoDataFrame

A dataframe with the specified dataset.