Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace frame.append with pandas.concat to avoid future incompatibility #41

Open
sgbaird opened this issue Feb 4, 2022 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@sgbaird
Copy link
Member

sgbaird commented Feb 4, 2022

FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
@sgbaird sgbaird added the bug Something isn't working label Feb 4, 2022
@sgbaird sgbaird self-assigned this Feb 4, 2022
@sgbaird
Copy link
Member Author

sgbaird commented Feb 17, 2022

e.g.

mat_discover/utils/extraordinary.py:19
  /home/runner/work/mat_discover/mat_discover/mat_discover/utils/extraordinary.py:19: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
    train_val_df = train_df.append(val_df)

@sgbaird
Copy link
Member Author

sgbaird commented Feb 25, 2022

I think the replacement is as simple as pd.concat(train_df, val_df) in the example above (pretty sure the default is axis=0, so vertical stacking of the DataFrames).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant