Seemingly related but not identical to #12997
How to reproduce the bugChecked with pandas 0.24.2, 1.1.5 and 1.2.0.
import pandas as pd
index = pd.date_range(
start='2020-12-28 00:00:00',
end='2020-12-28 02:00:00',
freq='1H',
)
a = pd.Series(
data=range(3),
index=index,
)
a.to_json(date_format='iso')
Output
'{"2020-12-28T00:00:00.000Z":0,"2020-12-28T01:00:00.000Z":1,"2020-12-28T02:00:00.000Z":2}'
(Notice the "Z" indicating UTC)
Expected output'{"2020-12-28T00:00:00.000":0,"2020-12-28T01:00:00.000":1,"2020-12-28T02:00:00.000":2}'
(without "Z")
thomasnal, connesy, sebtrack and oliverw1
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4