faisalfida commited on
Commit
5665ec2
1 Parent(s): 6e882b9

Update frequency code to address FutureWarning in processing.py

Browse files

Fix: Update frequency code to address FutureWarning in processing.py

The use of 'M' frequency is deprecated and will be removed in a future version of pandas. Updated the code to use 'ME' instead as recommended in the warning message.

Changes:
- Updated the frequency code in processing.py from 'M' to 'ME' to ensure compatibility with future versions of pandas.

Reference:
- FutureWarning: 'M' is deprecated and will be removed in a future version, please use 'ME' instead.
/usr/local/lib/python3.10/dist-packages/utilsforecast/processing.py:428

Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -128,7 +128,7 @@ import pandas as pd
128
 
129
  forecast_df = tfm.forecast_on_df(
130
  inputs=input_df,
131
- freq="M", # monthly
132
  value_name="y",
133
  num_jobs=-1,
134
  )
 
128
 
129
  forecast_df = tfm.forecast_on_df(
130
  inputs=input_df,
131
+ freq="ME", # monthly
132
  value_name="y",
133
  num_jobs=-1,
134
  )