Skip to content

Commit 4e5a380

Browse files
Julien RousselJulien Roussel
authored andcommitted
doc examples patched
1 parent 5559c85 commit 4e5a380

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/tutorials/plot_tuto_categorical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# ---------------------------------------------------------------
2222
# We get the data and focus on the explanatory variables
2323
df = data.get_data("Titanic")
24-
df = df.drop(columns=["survived"])
24+
df = df.drop(columns=["Survived"])
2525

2626
# %%
2727
# 2. Mixed type imputation methods

qolmat/utils/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def add_holes(df: pd.DataFrame, ratio_masked: float, mean_size: int) -> pd.DataF
324324
pd.DataFrame
325325
dataframe with missing values
326326
"""
327-
groups = df.index.names.difference(["datetime", "date", "index"])
327+
groups = df.index.names.difference(["datetime", "date", "index", None])
328328
if groups != []:
329329
generator = missing_patterns.GeometricHoleGenerator(
330330
1, ratio_masked=ratio_masked, subset=df.columns, groups=groups

0 commit comments

Comments
 (0)