Skip to content

Commit 37807e3

Browse files
committed
Fixed fill_method arg in pct_change
1 parent 032fd5a commit 37807e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7488,7 +7488,7 @@ def pct_change(self, periods=1, fill_method='pad', limit=None, freq=None,
74887488
**kwargs)) - 1)
74897489
rs = rs.reindex_like(data)
74907490
if freq is None:
7491-
mask = isna(com._values_from_object(self))
7491+
mask = isna(com._values_from_object(data))
74927492
np.putmask(rs.values, mask, np.nan)
74937493
return rs
74947494

0 commit comments

Comments
 (0)