Skip to content

Commit 881f523

Browse files
Refactor: Clean up comments and improve function documentation in Series class
1 parent e747c16 commit 881f523

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/core/series.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3223,14 +3223,13 @@ def combine_first(self, other) -> Series:
32233223
dtype: float64
32243224
"""
32253225
from pandas.core.reshape.concat import concat
3226-
3227-
# Change None values to NaN for both Series
3226+
32283227
def replace_none_with_nan(series):
32293228
series.fillna(value=np.nan, inplace=True)
32303229

3231-
# Apply the function to both Series
3230+
"""Apply the function to both Series"""
32323231
replace_none_with_nan(self)
3233-
replace_none_with_nan(other) # Removed the extra parenthesis here
3232+
replace_none_with_nan(other)
32343233

32353234
if self.dtype == other.dtype:
32363235
if self.index.equals(other.index):

0 commit comments

Comments
 (0)