Skip to content

Commit ca7e131

Browse files
blacken
1 parent bdf61e7 commit ca7e131

File tree

1 file changed

+2
-1
lines changed
  • packages/python/plotly/plotly/express

1 file changed

+2
-1
lines changed

Diff for: packages/python/plotly/plotly/express/_core.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@ def make_trace_kwargs(args, trace_spec, trace_data, mapping_labels, sizeref):
328328
x = sorted_trace_data[args["x"]].values
329329

330330
if x.dtype.type == np.datetime64:
331-
x = x.astype(np.int64) / 10**9 # convert to unix epoch seconds
331+
# convert to unix epoch seconds
332+
x = x.astype(np.int64) / 10**9
332333
elif x.dtype.type == np.object_:
333334
try:
334335
x = x.astype(np.float64)

0 commit comments

Comments
 (0)