We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 33db051 + 80e5b33 commit 27521acCopy full SHA for 27521ac
1 file changed
openml/datasets/functions.py
@@ -528,7 +528,7 @@ def attributes_arff_from_df(df):
528
for column_name in df:
529
# skipna=True does not infer properly the dtype. The NA values are
530
# dropped before the inference instead.
531
- column_dtype = pd.api.types.infer_dtype(df[column_name].dropna())
+ column_dtype = pd.api.types.infer_dtype(df[column_name].dropna(), skipna=False)
532
533
if column_dtype == 'categorical':
534
# for categorical feature, arff expects a list string. However, a
0 commit comments