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 5829e3e commit e747c16Copy full SHA for e747c16
pandas/core/series.py
@@ -3223,6 +3223,14 @@ def combine_first(self, other) -> Series:
3223
dtype: float64
3224
"""
3225
from pandas.core.reshape.concat import concat
3226
+
3227
+ # Change None values to NaN for both Series
3228
+ def replace_none_with_nan(series):
3229
+ series.fillna(value=np.nan, inplace=True)
3230
3231
+ # Apply the function to both Series
3232
+ replace_none_with_nan(self)
3233
+ replace_none_with_nan(other) # Removed the extra parenthesis here
3234
3235
if self.dtype == other.dtype:
3236
if self.index.equals(other.index):
0 commit comments