Skip to content

Commit

Permalink
fix(util): nan_to_none return a series of [None]
Browse files Browse the repository at this point in the history
  • Loading branch information
engisalor committed Dec 6, 2022
1 parent 9b172e6 commit a37fa62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corpusama/util/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def nan_to_none(
if series.any():
series = series.replace(to_replace=bad_NAs, value=None, regex=True)
else:
series = [None for x in series]
series = pd.Series([None for x in series], dtype=object)
return series


Expand Down

0 comments on commit a37fa62

Please sign in to comment.