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
[TI.by_speed] is not working with Pandas v.1.3.3 and above #317
Comments
while looking at this issue a bug was found for the Figure below shows that if for |
As part of the debugging of this issue it was observed that:
|
the TI.by_speed function can accept IEC_class inputs as DataFrame but if this doesn't contain three 4 columns (windspeed+ three classes) then TI.by_speed function raises and error. This bug is now fixed. |
bw.TI.by_speed(DATA[['Spd80mN']], DATA[['Spd80mNStd']])
is raising an error with Pandas v.1.3.3 and above. This error is due to an update ofpandas.DataFrame.agg
from Pandas v.1.3.3. see https://pandas.pydata.org/pandas-docs/stable/whatsnew/v1.3.3.htmlThis update is generating an error when deriving
pandas.DataFrame.agg(lambda x: np.percentile(x, q=percentile))
. The error is generated fordist(var_series=ti['Turbulence_Intensity'], var_to_bin_against=ti['wspd'], bins=speed_bin_array, bin_labels=speed_bin_labels, aggregation_method=lambda x: np.percentile(x, q=percentile), return_data=True)[-1].rename("Rep_TI")
when called inside
TI.by_speed
The text was updated successfully, but these errors were encountered: