Commit 28b388c4 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update Metric2D to remove useless string conversion.

parent 8d155af3
......@@ -609,7 +609,7 @@ class Metric2D(BaseReport): = store = Store(data=[], fields=[], sorters=[])
for col in df.columns:
di = {"name": str(col)}
di = {"name": col}
di["type"] = ("string" if col == field_y else "number")
......@@ -637,7 +637,7 @@ class Metric2D(BaseReport):
if col == field_y:
name = str(col)
name = col
grid.columns.append({"text": name,
"dataIndex": name,
"align": "right",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment