Skip to content

Commit 10d6325

Browse files
committed
Format Netherlands fetcher for latest Ruff
1 parent 2b59e6d commit 10d6325

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

rivretrieve/netherlands.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -344,12 +344,14 @@ def _extract_epsg_series(cls, df: pd.DataFrame) -> pd.Series:
344344
raw = df["Coordinatenstelsel"]
345345
if raw.apply(lambda value: isinstance(value, dict)).any():
346346
raw = raw.apply(
347-
lambda value: cls._extract_nested_value(value, "EPSG")
348-
or cls._extract_nested_value(value, "Code")
349-
or cls._extract_nested_value(value, "Waarde")
350-
or cls._extract_nested_value(value, "Id")
351-
if isinstance(value, dict)
352-
else value
347+
lambda value: (
348+
cls._extract_nested_value(value, "EPSG")
349+
or cls._extract_nested_value(value, "Code")
350+
or cls._extract_nested_value(value, "Waarde")
351+
or cls._extract_nested_value(value, "Id")
352+
if isinstance(value, dict)
353+
else value
354+
)
353355
)
354356

355357
return pd.to_numeric(raw, errors="coerce").fillna(25831).astype("Int64")

0 commit comments

Comments
 (0)