Skip to content

Commit a1a8a5c

Browse files
authored
Update _dataframe_client.py
Fix value error with pandas > 2.0 when we try to parse a mix of query results with whole seconds and decimal seconds
1 parent 915b79a commit a1a8a5c

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy