Skip to content

Commit

Permalink
Pre 1.0 pandas compatibilty
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease committed Jan 13, 2021
1 parent 46d6a59 commit fcba8a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/python/plotly/_plotly_utils/basevalidators.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def copy_to_readonly_numpy_array(v, kind=None, force_numeric=False):
# DatetimeIndex
v = v.to_pydatetime()
elif pd and isinstance(v, pd.DataFrame) and len(set(v.dtypes)) == 1:
dtype = v.dtypes[0]
dtype = v.dtypes.tolist()[0]
if dtype.kind in numeric_kinds:
v = v.values
elif dtype.kind == "M":
Expand Down

0 comments on commit fcba8a7

Please sign in to comment.