From 8e1fc2b0ba665c35314eadf9a5196cd35bb2a433 Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Wed, 18 Sep 2019 13:32:58 -0700 Subject: [PATCH] Fix array casting (#8253) --- superset/dataframe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/dataframe.py b/superset/dataframe.py index 47683b0cc..c1733362d 100644 --- a/superset/dataframe.py +++ b/superset/dataframe.py @@ -110,7 +110,7 @@ class SupersetDataFrame(object): # 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)