Skip to content

Commit 2517579

Browse files
committed
reset_index() for more pandas versions without index name
1 parent d9b602d commit 2517579

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
@@ -378,7 +378,7 @@ def assign_power_curve(self, wake_losses_model='wind_farm_efficiency',
378378
wind_farm_power_curve = pd.DataFrame(
379379
df.interpolate(method='index').sum(axis=1))
380380
wind_farm_power_curve.columns = ['value']
381-
wind_farm_power_curve.reset_index('wind_speed', inplace=True)
381+
wind_farm_power_curve.reset_index(inplace=True)
382382
# Apply power curve smoothing and consideration of wake losses
383383
# after the summation
384384
if smoothing and smoothing_order == 'wind_farm_power_curves':

0 commit comments

Comments
 (0)