prophet icon indicating copy to clipboard operation
prophet copied to clipboard

pandas frame.appendis deprecated

Open Time4Summer opened this issue 2 years ago • 3 comments

fbprophet\forecaster.py:891: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.

Time4Summer avatar Mar 05 '22 00:03 Time4Summer

Looks like there is a pull request from nlhkh for this already. Should be merged in soon.

jul-carras avatar Mar 23 '22 15:03 jul-carras

The maintainers disappeared. It has been 2 months and no response.

khanetor avatar Apr 10 '22 20:04 khanetor

Could just be a busy time. I've looked at closed pull requests and sometimes it takes a few months to bring them in.

jul-carras avatar Apr 13 '22 14:04 jul-carras

I think is due to the pandas append method, that will be deprecated in the future.

So this method is basically to add in a given dataframe another dataframe. This can be done:

# With append
df.append(df_other)

# With concat
pd.concat([df, df_other])

And basically the one that will be supported in the future is the second one.

nil-andreu avatar Jan 12 '23 10:01 nil-andreu

Please upgrade to 1.1.1, https://github.com/facebook/prophet/pull/2114 removes this deprecation warning.

tcuongd avatar Jan 13 '23 12:01 tcuongd