Skip to content

Commit 27521ac

Browse files
authored
Merge pull request #766 from TwsThomas/patch-1
pass skipna=False explicitly
2 parents 33db051 + 80e5b33 commit 27521ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openml/datasets/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ def attributes_arff_from_df(df):
528528
for column_name in df:
529529
# skipna=True does not infer properly the dtype. The NA values are
530530
# dropped before the inference instead.
531-
column_dtype = pd.api.types.infer_dtype(df[column_name].dropna())
531+
column_dtype = pd.api.types.infer_dtype(df[column_name].dropna(), skipna=False)
532532

533533
if column_dtype == 'categorical':
534534
# for categorical feature, arff expects a list string. However, a

0 commit comments

Comments
 (0)