Skip to content

Commit

Permalink
Fix missing median values
Browse files Browse the repository at this point in the history
Signed-off-by: coleramos425 <colramos@amd.com>
  • Loading branch information
coleramos425 committed Mar 2, 2024
1 parent cdeb2c7 commit 7b8cf17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def to_median(a):
return None
elif isinstance(a, pd.core.series.Series):
with warnings.catch_warnings():
warnings.simplefilter("ignore", message="Mean of empty slice")
warnings.simplefilter("ignore", category=RuntimeWarning)
return a.median()
else:
raise Exception("to_median: unsupported type.")
Expand Down

0 comments on commit 7b8cf17

Please sign in to comment.