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_home: str or path, default=None
The directory where to download and unzip the files.
- Returns:
- bunchsklearn.utils.Bunch
A dictionary-like object with the following keys:
bike_sharing
: pd.DataFrame, the full dataframe. Shape: (17379, 11)X
: pd.DataFrame, features, i.e. the dataframe without the target labels. Shape: (17379, 10)y
: pd.DataFrame, target labels. Shape: (17379, 1)metadata
: a dictionary containing the name and target
Gallery examples#

Handling datetime features with the DatetimeEncoder
Handling datetime features with the DatetimeEncoder