skoot.datasets
.load_boston_df¶
-
skoot.datasets.
load_boston_df
(include_tgt=True, tgt_name='target', names=None)[source][source]¶ Get the Boston housing dataset.
Loads the boston housing dataset into a dataframe with the target set as the “target” feature or whatever name is specified in
tgt_name
.Parameters: include_tgt : bool, optional (default=True)
Whether to include the target
tgt_name : str, optional (default=”target”)
The name of the target feature
names : iterable or None
The column names for the dataframe. If not defined, will default to the
feature_names
attribute in the sklearn bunch instance.Returns: X : pd.DataFrame, shape=(n_samples, n_features)
The loaded boston dataset