mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
Fix array casting (#8253)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user