diff --git a/docs/source/sklearn_integrations.mdx b/docs/source/sklearn_integrations.mdx index 5583c25d..33a6a0fb 100644 --- a/docs/source/sklearn_integrations.mdx +++ b/docs/source/sklearn_integrations.mdx @@ -32,6 +32,7 @@ X, y = fetch_openml("titanic", version=1, as_frame=True, return_X_y=True) Alternatively X and y can be obtained directly from the frame attribute: ```python +titanic = fetch_openml("titanic", version=1, as_frame=True) X = titanic.frame.drop('survived', axis=1) y = titanic.frame['survived'] ```