fetch_bike_sharing#

skrub.datasets.fetch_bike_sharing(data_home=None)[source]#

Fetch the bike sharing dataset (regression) available at skrub-data/skrub-data-files

This is a regression use-case, where the goal is to predict demand for a bike-sharing service. The features are the dates and holiday and weather information. Size on disk: 1.3MB.

Parameters:
data_homestr or path-like, default=None

The directory where to download and unzip the files.

Returns:
bunchBunch

A dictionary-like object with the following keys:

bike_sharingDataFrame of shape (17379, 11)

The full dataframe.

XDataFrame of shape (17379, 10)

Features, i.e. the dataframe without the target labels.

yDataFrame of shape (17379, 1)

Target labels.

metadatadict

A dictionary containing the name and target.

pathstr

The path to the bike sharing CSV file.

Examples

>>> from skrub.datasets import fetch_bike_sharing
>>> data = fetch_bike_sharing()
>>> print(data.keys())
dict_keys(['path', 'bike_sharing', 'bike_sharing_path',
  'metadata', 'metadata_path', 'X', 'y'])