We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d008387 commit f10ae53Copy full SHA for f10ae53
1 file changed
dbmsbenchmarker/monitor.py
@@ -186,8 +186,9 @@ def metricsToDataframe(metric, values):
186
df.iloc[:, 0] = df.iloc[:, 0] - minimum
187
# Set time as index
188
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")
+ # Convert metric values to float (ensure dtype is flexible)
+ col = metric['title']
191
+ df[col] = pd.to_numeric(df[col].astype(object), errors='coerce')
192
return df
193
def __OLD_metricsToDataframe(metric, values):
194
df = pd.DataFrame.from_records(values)
0 commit comments