This is an automated email from the ASF dual-hosted git repository.
beto pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 8e1fc2b Fix array casting (#8253)
8e1fc2b is described below
commit 8e1fc2b0ba665c35314eadf9a5196cd35bb2a433
Author: Beto Dealmeida <[email protected]>
AuthorDate: Wed Sep 18 13:32:58 2019 -0700
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 47683b0..c173336 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)