Skip to content

Commit

Permalink
Fix dataframe parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcth committed Mar 27, 2024
1 parent 200c6cd commit 6a67d3b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/smhi/metobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,12 +358,9 @@ def __init__(
data_model = self._get_data(model.data)
stationdata = data_model.stationdata
stationdata = self._clean_columns(stationdata)
stationdata = self._drop_nan(data_model.stationdata)
stationdata = self._drop_nan(stationdata)

if (
self._has_datetime_columns(data_model.stationdata) is True
and not stationdata.empty
):
if self._has_datetime_columns(stationdata) is True and not stationdata.empty:
stationdata = self._set_dataframe_index(stationdata)

self.station = data_model.station
Expand Down

0 comments on commit 6a67d3b

Please sign in to comment.