Skip to content

Commit e9911cc

Browse files
committed
address comment
Signed-off-by: Santiago Figueroa Manrique <[email protected]>
1 parent 96692c0 commit e9911cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/power_grid_model_io/functions/filters.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ def exclude_value(row: pd.Series, col: str, value: Union[float, str]) -> bool:
3131
if col not in row:
3232
raise ValueError(f"The column: '{col}' cannot be found for the filter")
3333
result = row[col] != value
34+
# Sonar cloud false positive: result can be a pd.Series of bool
3435
if isinstance(result, pd.Series): # sonar-ignore: S2583
35-
return result.item() # sonar-ignore: S2583
36+
return result.item()
3637
return result
3738

3839

0 commit comments

Comments
 (0)