Skip to content

Commit 4e345d2

Browse files
Julien RousselJulien Roussel
authored andcommitted
plot_tuto_categorical.py has been patched
1 parent 13a76ec commit 4e345d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/tutorials/plot_tuto_categorical.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
# We get the data and focus on the explanatory variables
2323
df = data.get_data("Titanic")
2424
df = df.drop(columns=["Survived"])
25+
print("Dataset shape:", df.shape)
26+
df.head()
2527

2628
# %%
2729
# 2. Mixed type imputation methods
@@ -61,7 +63,7 @@
6163
imputer_hgb = ImputerRegressor(estimator=pipestimator, handler_nan="none")
6264
imputer_wrap_hgb = preprocessing.WrapperTransformer(imputer_hgb, bt)
6365

64-
# %%
66+
# %%
6567
# 3. Mixed type model selection
6668
# ---------------------------------------------------------------
6769
# Let us now compare these three aproaches by measuring their ability to impute uniformly

0 commit comments

Comments
 (0)