Skip to content

Commit fcba8a7

Browse files
committed
Pre 1.0 pandas compatibilty
1 parent 46d6a59 commit fcba8a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/python/plotly/_plotly_utils/basevalidators.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def copy_to_readonly_numpy_array(v, kind=None, force_numeric=False):
104104
# DatetimeIndex
105105
v = v.to_pydatetime()
106106
elif pd and isinstance(v, pd.DataFrame) and len(set(v.dtypes)) == 1:
107-
dtype = v.dtypes[0]
107+
dtype = v.dtypes.tolist()[0]
108108
if dtype.kind in numeric_kinds:
109109
v = v.values
110110
elif dtype.kind == "M":

0 commit comments

Comments
 (0)