You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling wpl.data.get_turbine_types() with pandas 2.2.3 throws the following warning at windpowerlib/data.py:103:
FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated and will change in a future version. Call result.infer_objects(copy=False) instead. To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)`
This is caused by .fillna(False) in the following:
Calling
wpl.data.get_turbine_types()
with pandas 2.2.3 throws the following warning atwindpowerlib/data.py:103
:FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated and will change in a future version. Call result.infer_objects(copy=False) instead. To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)`
This is caused by
.fillna(False)
in the following:I am no developer, but I did some reading about the warning and this seems to be a clean (and possible the "correct") way to get rid of it:
The text was updated successfully, but these errors were encountered: