Skip to content

Commit

Permalink
Remove usage of deprecated Pandas parameter convert_dtypes (#3191)
Browse files Browse the repository at this point in the history
  • Loading branch information
binste authored Sep 15, 2023
1 parent dd72c9b commit b2b14cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion altair/utils/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def to_list_if_array(val):
elif dtype == object:
# Convert numpy arrays saved as objects to lists
# Arrays are not JSON serializable
col = df[col_name].apply(to_list_if_array, convert_dtype=False)
col = df[col_name].astype(object).apply(to_list_if_array)
df[col_name] = col.where(col.notnull(), None)
return df

Expand Down

0 comments on commit b2b14cd

Please sign in to comment.