From 0674ed846c478bd97e7b6953c375b5a3ab26802b Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 14 Mar 2017 18:01:35 -0700 Subject: [PATCH] Use list instead of numpy array (#2412) --- superset/sql_lab.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/superset/sql_lab.py b/superset/sql_lab.py index 5ea3f14ac3804..864e0edea08b7 100644 --- a/superset/sql_lab.py +++ b/superset/sql_lab.py @@ -2,7 +2,6 @@ from datetime import datetime import json import logging -import numpy as np import pandas as pd import sqlalchemy import uuid @@ -142,9 +141,8 @@ def handle_error(msg): column_names = ( [col[0] for col in cursor.description] if cursor.description else []) column_names = dedup(column_names) - df_data = np.array(data) if data else [] cdf = dataframe.SupersetDataFrame(pd.DataFrame( - df_data, columns=column_names)) + list(data), columns=column_names)) query.rows = cdf.size query.progress = 100