Skip to content

Commit 8d49057

Browse files
authored
Merge pull request #25 from AICoE/4n4nd-patch-1
Fix for the new pandas release (v0.25.0)
2 parents 40c6cf8 + 6909575 commit 8d49057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus_api_client/metric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(self, metric, oldest_data_datetime=None):
6464
metric["values"] = [metric["value"]]
6565

6666
self.metric_values = pandas.DataFrame(metric["values"], columns=["ds", "y"]).apply(
67-
pandas.to_numeric, args=({"errors": "coerce"})
67+
pandas.to_numeric, errors="raise"
6868
)
6969
self.metric_values["ds"] = pandas.to_datetime(self.metric_values["ds"], unit="s")
7070

0 commit comments

Comments
 (0)