Skip to content

Commit 20466a1

Browse files
committed
React to pandas FutureWarning
FutureWarning: Sorting because non-concatenation axis is not aligned. A future version of pandas will change to not sort by default. To accept the future behavior, pass 'sort=False'. To retain the current behavior and silence the warning, pass 'sort=True'.
1 parent 9e1ffe1 commit 20466a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

windpowerlib/wind_farm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def assign_power_curve(self, wake_losses_model='power_efficiency_curve',
261261
if power_curve.iloc[0]['wind_speed'] != 0.0:
262262
power_curve = pd.concat(
263263
[power_curve, pd.DataFrame(data={
264-
'power': [0.0], 'wind_speed': [0.0]})])
264+
'power': [0.0], 'wind_speed': [0.0]})], sort=True)
265265
if power_curve.iloc[-1]['power'] != 0.0:
266266
power_curve = pd.concat(
267267
[power_curve, pd.DataFrame(data={

0 commit comments

Comments
 (0)