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.
1 parent f0d27cf commit 1ec16fdCopy full SHA for 1ec16fd
rdt/transformers/utils.py
@@ -183,7 +183,7 @@ def _fill_nan_with_none_series(data):
183
data = data.fillna(sentinel).replace({sentinel: None})
184
return pd.Series(pd.Categorical(data, categories=dtype.categories), index=data.index)
185
186
- return data.fillna(sentinel).replace({sentinel: None})
+ return data.astype(object).fillna(sentinel).replace({sentinel: None})
187
188
189
def fill_nan_with_none(data):
0 commit comments