8000 Fix the compatibility to pandas DataFrame · influxdata/influxdb-python@576a881 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 576a881

Browse files
Fix the compatibility to pandas DataFrame
Originally, the setting is use the list to confirm the precision issue, ['n', 'u', 'ms', 's', 'm', 'h', 'N', None]. However, i change the list to another form, ['n', 'u', 'ms', 's', 'm', 'h', 'N', 'U', 'L', 'S', 'M', 'H', None], because the pandas have some different in mine work. Pandas version: 0.22.0 OS: OS X.
1 parent 35732cd commit 576a881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def _write_points(self,
492492
retention_policy,
493493
tags,
494494
protocol='json'):
495-
if time_precision not in ['n', 'u', 'ms', 's', 'm', 'h', None]:
495+
if time_precision not in ['n', 'u', 'ms', 's', 'm', 'h', 'N', 'U', 'L', 'S', 'M', 'H', None]:
496496
raise ValueError(
497497
"Invalid time precision is given. "
498498
"(use 'n', 'u', 'ms', 's', 'm' or 'h')")

0 commit comments

Comments
 (0)
0