Skip to content

Commit acbf8fe

Browse files
author
Ruchita Deshmukh
committed
None replace
1 parent 9f93d57 commit acbf8fe

File tree

5 files changed

+357
-5
lines changed

5 files changed

+357
-5
lines changed

pandas/_libs/algos.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ def pad_inplace(algos_t[:] values,
463463
continue
464464
fill_count += 1
465465
values[i] = val
466+
466467
else:
467468
fill_count = 0
468469
val = values[i]

pandas/core/frame.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4193,6 +4193,7 @@ def replace(
41934193
limit=None,
41944194
regex=False,
41954195
method="pad",
4196+
replace_by_none=False
41964197
):
41974198
return super().replace(
41984199
to_replace=to_replace,
@@ -4201,6 +4202,7 @@ def replace(
42014202
limit=limit,
42024203
regex=regex,
42034204
method=method,
4205+
replace_by_none=replace_by_none
42044206
)
42054207

42064208
@Appender(_shared_docs["shift"] % _shared_doc_kwargs)

0 commit comments

Comments
 (0)