Skip to content

Commit e866484

Browse files
kaibirKai Birkemeyer
authored and
Kai Birkemeyer
committed
Fix a bug regarding timedelta64[ms] representation
1 parent 8a151e1 commit e866484

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

Diff for: .circleci/config.yml

+10
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,15 @@ jobs:
150150
- test_optional:
151151
py: "39"
152152

153+
# Pandas
154+
155+
python_39_pandas_2_optional:
156+
docker:
157+
- image: circleci/python:3.9-buster-node-browsers
158+
steps:
159+
- test_optional:
160+
py: "39_pandas_2"
161+
153162
# Orca
154163
python_38_orca:
155164
docker:
@@ -470,6 +479,7 @@ workflows:
470479
- python_37_optional
471480
- python_38_optional
472481
- python_39_optional
482+
- python_39_pandas_2_optional
473483
- python_38_orca
474484
- python_37_percy
475485
- build-doc

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,9 @@ def process_dataframe_timeline(args):
16821682
)
16831683

16841684
# note that we are not adding any columns to the data frame here, so no risk of overwrite
1685-
args["data_frame"][args["x_end"]] = (x_end - x_start).astype("timedelta64[ms]")
1685+
args["data_frame"][args["x_end"]] = (x_end - x_start).astype(
1686+
"timedelta64[ns]"
1687+
) / np.timedelta64(1, "ms")
16861688
args["x"] = args["x_end"]
16871689
del args["x_end"]
16881690
args["base"] = args["x_start"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
requests==2.25.1
2+
tenacity==6.2.0
3+
pandas==2.0.0rc1
4+
numpy==1.20.3
5+
xarray==0.17.0
6+
statsmodels
7+
Pillow==8.2.0
8+
pytest==6.2.3
9+
pytz==2021.1
10+
ipython[all]==7.22.0
11+
ipywidgets==8.0.2
12+
ipykernel==5.5.3
13+
jupyter==1.0.0
14+
scipy==1.6.2
15+
Shapely==1.7.1
16+
geopandas==0.9.0
17+
pyshp==2.1.3
18+
matplotlib==2.2.3
19+
scikit-image==0.18.1
20+
psutil==5.7.0
21+
kaleido

0 commit comments

Comments
 (0)