Skip to content

Commit 4a8372e

Browse files
authored
v0.14.19 - Bugfixes in Monitoring (#217)
* metricsToDataframe for current pandas version improved
1 parent d7b0f06 commit 4a8372e

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

dbmsbenchmarker/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.14.18"
1+
__version__ = "0.14.19"

dbmsbenchmarker/monitor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,9 @@ def metricsToDataframe(metric, values):
186186
df.iloc[:, 0] = df.iloc[:, 0] - minimum
187187
# Set time as index
188188
df = df.set_index(df.columns[0])
189-
# Convert metric values to float
190-
df.iloc[:, 0] = pd.to_numeric(df.iloc[:, 0], errors="coerce")
189+
# Convert metric values to float (ensure dtype is flexible)
190+
col = metric['title']
191+
df[col] = pd.to_numeric(df[col].astype(object), errors='coerce')
191192
return df
192193
def __OLD_metricsToDataframe(metric, values):
193194
df = pd.DataFrame.from_records(values)

0 commit comments

Comments
 (0)