From 02f51d43f239bb99b679de781ab4cadce9a871bc Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Wed, 18 Sep 2019 13:16:53 -0700 Subject: [PATCH] Fix array casting --- superset/dataframe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/dataframe.py b/superset/dataframe.py index 47683b0cc0d4..c1733362d807 100644 --- a/superset/dataframe.py +++ b/superset/dataframe.py @@ -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)