Skip to content

Built-in datasets

fleur has a few datasets that you can load easily:

  • iris
  • mtcars
  • titanic


fleur.data.load_iris(output_format='pandas')

Load the iris dataset.

Parameters:

Name Type Description Default
output_format str

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

'pandas'

Returns:

Type Description
Frame

The iris dataset.


fleur.data.load_mtcars(output_format='pandas')

Load the mtcars dataset.

Parameters:

Name Type Description Default
output_format str

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

'pandas'

Returns:

Type Description
Frame

The mtcars dataset.


fleur.data.load_titanic(output_format='pandas')

Load the titanic dataset.

Parameters:

Name Type Description Default
output_format str

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

'pandas'

Returns:

Type Description
Frame

The titanic dataset.