Skip to content

Commit

Permalink
Use list instead of numpy array
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Kyryliuk committed Mar 15, 2017
1 parent 3107152 commit 15b2ad3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions superset/sql_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from datetime import datetime
import json
import logging
import numpy as np
import pandas as pd
import sqlalchemy
import uuid
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 15b2ad3

Please sign in to comment.