79632100

Date: 2025-05-21 13:37:10
Score: 0.5
Natty:
Report link

Fyi known issue - https://github.com/pandas-dev/pandas/issues/54981

Work arround : use both forward and backward filling

sub_df[f"Δ {col}"] = sub_df[col].ffill().bfill().pct_change(fill_method=None)
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Bhargav