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 e747c16 commit 881f523Copy full SHA for 881f523
pandas/core/series.py
@@ -3223,14 +3223,13 @@ 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
+ """Apply the function to both Series"""
3232
replace_none_with_nan(self)
3233
- replace_none_with_nan(other) # Removed the extra parenthesis here
+ replace_none_with_nan(other)
3234
3235
if self.dtype == other.dtype:
3236
if self.index.equals(other.index):
0 commit comments