brightwind-dev / brightwind

Python library containing wind analysis functions
MIT License
50 stars 18 forks source link

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

Open Ilirmc opened 1 year ago

Ilirmc commented 1 year ago

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 commented 1 year ago

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

Cheers,

cc @BiancaMorandi

stephenholleran commented 6 months ago

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