Skip to content

Commit 24e1f6c

Browse files
committed
Eliminate Warning. Change .ix to .iloc #23
1 parent e8d46ce commit 24e1f6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

windpowerlib/modelchain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def wind_speed_hub(self, weather_df):
285285
wind_speed_hub = wind_speed.logarithmic_profile(
286286
weather_df['wind_speed'][closest_height], closest_height,
287287
self.power_plant.hub_height,
288-
weather_df['roughness_length'].ix[:, 0],
288+
weather_df['roughness_length'].iloc[:, 0],
289289
self.obstacle_height)
290290
elif self.wind_speed_model == 'hellman':
291291
logging.debug('Calculating wind speed using hellman equation.')
@@ -296,7 +296,7 @@ def wind_speed_hub(self, weather_df):
296296
wind_speed_hub = wind_speed.hellman(
297297
weather_df['wind_speed'][closest_height], closest_height,
298298
self.power_plant.hub_height,
299-
weather_df['roughness_length'].ix[:, 0],
299+
weather_df['roughness_length'].iloc[:, 0],
300300
self.hellman_exp)
301301
elif self.wind_speed_model == 'interpolation_extrapolation':
302302
logging.debug('Calculating wind speed using linear inter- or '

0 commit comments

Comments
 (0)