Fix array casting (#8253)

This commit is contained in:
Beto Dealmeida 2019-09-18 13:32:58 -07:00 committed by GitHub
parent 12fb8e70cc
commit 8e1fc2b0ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)