Skip to content

Commit

Permalink
🚨 Ignore some type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jh0ker committed Nov 8, 2023
1 parent 5c16f63 commit 754cfb3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ddj_cloud/scrapers/talsperren/exporters/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ def _add_daily_fill_ratio_to_map(
df_res = df_base.copy()
# First, set the 'ts_measured' column as the DataFrame index
df_res.set_index("ts_measured", inplace=True)
df_res.index = df_res.index.tz_convert("Europe/Berlin")
df_res.index = df_res.index.tz_convert("Europe/Berlin") # type: ignore

# Group by 'federation_name' and 'name', then resample to daily frequency using median
df_daily = (
df_res.groupby(
["id"],
)
.resample("D")
.aggregate(
.aggregate( # type: ignore
{
"fill_ratio": "median",
}
Expand Down Expand Up @@ -63,15 +63,15 @@ def _add_monthly_fill_ratio_to_map(

# First, set the 'ts_measured' column as the DataFrame index
df_res.set_index("ts_measured", inplace=True)
df_res.index = df_res.index.tz_convert("Europe/Berlin")
df_res.index = df_res.index.tz_convert("Europe/Berlin") # type: ignore

# Group by 'id', then resample to monthly frequency using median
df_monthly: pd.DataFrame = (
df_res.groupby(
["id"],
)
.resample("M", closed="right", label="left")
.aggregate(
.aggregate( # type: ignore
{
"fill_ratio": "median",
}
Expand Down

0 comments on commit 754cfb3

Please sign in to comment.