Skip to content

FutureWarning: The frame.append method is deprecated. Use pandas.concat instead. #751

Closed
1 of 2 tasks
martins0n opened this issue Jun 15, 2022 · 0 comments · Fixed by #764
Closed
1 of 2 tasks

FutureWarning: The frame.append method is deprecated. Use pandas.concat instead. #751

martins0n opened this issue Jun 15, 2022 · 0 comments · Fixed by #764
Assignees
Labels
enhancement New feature or request

Comments

@martins0n
Copy link
Contributor

martins0n commented Jun 15, 2022

🚀 Feature Request

In some cases we use pd.DataFrame.append for Dataframe incremental updates.

Motivation

It seems append is depreceated

Proposal

Now we should use pandas.concat everywhere:

Recommended syntax:

pd.concat([pd.Series([1, 2]), pd.Series([3, 4])])
Out[34]: 
0    1
1    2
0    3
1    4
dtype: int64

df1 = pd.DataFrame([[1, 2], [3, 4]], columns=list('AB'))

df2 = pd.DataFrame([[5, 6], [7, 8]], columns=list('AB'))

pd.concat([df1, df2])
Out[37]: 
   A  B
0  1  2
1  3  4
0  5  6
1  7  8

Test cases

No response

Alternatives

No response

Additional context

  • We should eliminate FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead. in tests logs at least.

Checklist

  • I discussed this issue with ETNA Team
@martins0n martins0n added the enhancement New feature or request label Jun 15, 2022
@alex-hse-repository alex-hse-repository self-assigned this Jun 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants