Skip to content

FIX sphinx formatting in load_boston #21185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sklearn/datasets/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,13 +1133,13 @@ def load_linnerud(*, return_X_y=False, as_frame=False):
target = raw_df.values[1::2, 2]

Alternative datasets include the California housing dataset (i.e.
func:`~sklearn.datasets.fetch_california_housing`) and the Ames housing
dataset. You can load the datasets as follows:
:func:`~sklearn.datasets.fetch_california_housing`) and the Ames housing
dataset. You can load the datasets as follows::

from sklearn.datasets import fetch_california_housing
housing = fetch_california_housing()

for the California housing dataset and:
for the California housing dataset and::

from sklearn.datasets import fetch_openml
housing = fetch_openml(name="house_prices", as_frame=True)
Expand Down Expand Up @@ -1190,7 +1190,7 @@ def load_boston(*, return_X_y=False):
target = raw_df.values[1::2, 2]

Alternative datasets include the California housing dataset [3]_
(i.e. func:`~sklearn.datasets.fetch_california_housing`) and Ames
(i.e. :func:`~sklearn.datasets.fetch_california_housing`) and Ames
housing dataset [4]_. You can load the datasets as follows::

from sklearn.datasets import fetch_california_housing
Expand Down