File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -233,14 +233,19 @@ def check_weather_data(weather_df):
233233
234234 """
235235 # Convert data heights to integer. In some case they are strings.
236- weather_df .columns = pd .MultiIndex .from_arrays ([
237- weather_df .columns .get_level_values (0 ),
238- pd .to_numeric (weather_df .columns .get_level_values (1 ))])
236+ weather_df .columns = pd .MultiIndex .from_arrays (
237+ [
238+ weather_df .columns .get_level_values (0 ),
239+ pd .to_numeric (weather_df .columns .get_level_values (1 )),
240+ ]
241+ )
239242
240243 # check for nan values
241244 if weather_df .isnull ().any ().any ():
242245 nan_columns = list (weather_df .columns [weather_df .isnull ().any ()])
243- msg = ("The following columns of the weather data contain invalid "
244- "values like 'nan': {0}" )
246+ msg = (
247+ "The following columns of the weather data contain invalid "
248+ "values like 'nan': {0}"
249+ )
245250 warnings .warn (msg .format (nan_columns ), WindpowerlibUserWarning )
246251 return weather_df
You can’t perform that action at this time.
0 commit comments