Skip to content

Commit 1d69646

Browse files
committed
Changed None types to NaN
1 parent bbe0e53 commit 1d69646

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/core/series.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3141,6 +3141,10 @@ def combine_first(self, other) -> Series:
31413141
"""
31423142
from pandas.core.reshape.concat import concat
31433143

3144+
# Change None values to NaN
3145+
self.fillna(value=np.nan, inplace=True)
3146+
other.fillna(value=np.nan, inplace=True)
3147+
31443148
if self.dtype == other.dtype:
31453149
if self.index.equals(other.index):
31463150
return self.mask(self.isna(), other)

0 commit comments

Comments
 (0)