Skip to content

Commit

Permalink
Fix array casting (#8253)
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida authored Sep 18, 2019
1 parent 12fb8e7 commit 8e1fc2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def __init__(self, data, cursor_description, db_engine_spec):
# need to do this because we can not specify a mixed dtype when
# instantiating the DataFrame, and this allows us to have different
# dtypes for each column.
array = np.array(data)
array = np.array(data, dtype="object")
data = {
column: pd.Series(array[:, i], dtype=dtype[column])
for i, column in enumerate(column_names)
Expand Down

0 comments on commit 8e1fc2b

Please sign in to comment.