Skip to content

Commit 162931b

Browse files
specify format=ISO8601 to fix parsing errors on timestamps that fall evenly on second (no decimal places)
1 parent 915b79a commit 162931b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/_dataframe_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def _to_dataframe(self, rs, dropna=True, data_frame_index=None):
219219
else:
220220
key = (name, tuple(sorted(tags.items())))
221221
df = pd.DataFrame(data)
222-
df.time = pd.to_datetime(df.time)
222+
df.time = pd.to_datetime(df.time, format='ISO8601')
223223

224224
if data_frame_index:
225225
df.set_index(data_frame_index, inplace=True)

0 commit comments

Comments
 (0)