Skip to content

Commit

Permalink
Exclude station when searching for empty rows
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Mar 26, 2024
1 parent a977230 commit f635e83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lvmapi/tools/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from astropy.time import Time, TimeDelta


__all__ = ['get_weather_data']
__all__ = ["get_weather_data"]


WEATHER_URL = "http://dataservice.lco.cl/vaisala/data"
Expand Down Expand Up @@ -99,7 +99,7 @@ async def get_weather_data(
)

# Delete rows with all null values.
df = df.filter(~polars.all_horizontal(polars.exclude("ts").is_null()))
df = df.filter(~polars.all_horizontal(polars.exclude("ts", "station").is_null()))

# Sort by timestamp
df = df.sort("ts")
Expand Down

0 comments on commit f635e83

Please sign in to comment.