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

[load_csv] 'DataFrame' object has no attribute 'append'. Pandas 2.0+ removed "df.append()" function. #407

Open
Ilirmc opened this issue Jul 10, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Ilirmc
Copy link
Collaborator

Ilirmc commented Jul 10, 2023

Describe the bug
The bw.load_csv function fails to load csvs from a folder, as the pandas "df.append()" function has been removed in pandas 2.0+. This should be replaced with concat.

To Reproduce
df = bw.load_csv(folder_path_containing_csvs)
AttributeError: 'DataFrame' object has no attribute 'append'

Expected behavior
bw.load_csv() should load all the csv files from the folder and return them as a single DataFrame

@stephenholleran
Copy link
Collaborator

Thanks @Ilirmc for highlighting. Do you want to suggest a solution or we can take a look at it ourselves?

Cheers,

cc @BiancaMorandi

@stephenholleran stephenholleran added the bug Something isn't working label Jul 10, 2023
@stephenholleran
Copy link
Collaborator

@Ilirmc are you able to tackle this in the next week or so?
Thanks.

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
Status: To do
Development

No branches or pull requests

2 participants