brightwind-dev / brightwind

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

[Stations.measurements.get_table()] Pandas FutureWarning for `df.drop('meas_type_rank', 1, inplace=True)` not caught #421

Open stephenholleran opened 11 months ago

stephenholleran commented 11 months ago

Describe the bug A FutureWarning in Pandas 1.5.3 was not accounted for to allow the library to work with newer Pandas versions. The FutureWarning was image

To Reproduce Create a Station object and show the measurements table using Pandas==1.5.3.

Expected behavior Plotting the table with no warning or error.

Additional context The fix is to add the axis label.

df.drop('meas_type_rank', axis=1, inplace=True)
BiancaMorandi commented 2 days ago

this issue was not captured because there is not test using option that will trigger this. As part of this issue we need to add also a test e.g the example given above.