From d8184fd6012ac834832645312d0c14a5027c09ae Mon Sep 17 00:00:00 2001 From: AlexShen-Oguri <176059206+AlexShen-Oguri@users.noreply.github.com> Date: Mon, 30 Nov 2026 21:06:04 -0500 Subject: [PATCH] Initialize the Titanic frame in the scikit-learn guide Co-authored-by: OpenAI Codex --- docs/source/sklearn_integrations.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/sklearn_integrations.mdx b/docs/source/sklearn_integrations.mdx index 5583c25d2..33a6a0fba 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'] ```