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

Update time_precision param values in docstring #841

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion influxdb/_dataframe_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def _convert_dataframe_to_json(dataframe,
'time': np.int64(ts.value / precision_factor)}
for ts, tag, (_, rec) in zip(
dataframe.index,
dataframe[tag_columns].to_dict('record'),
dataframe[tag_columns].to_dict('records'),
dataframe[field_columns].iterrows()
)
]
Expand Down
6 changes: 4 additions & 2 deletions influxdb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,8 @@ def write_points(self,
:type points: (if protocol is 'json') list of dicts, where each dict
represents a point.
(if protocol is 'line') sequence of line protocol strings.
:param time_precision: Either 's', 'm', 'ms' or 'u', defaults to None
:param time_precision: Either 'n', 'u', 'ms', 's', 'm' or 'h',
defaults to None
:type time_precision: str
:param database: the database to write the points to. Defaults to
the client's current database
Expand Down Expand Up @@ -1177,7 +1178,8 @@ def send_packet(self, packet, protocol='json', time_precision=None):
(if protocol is 'line') list of line protocol strings
:param protocol: protocol of input data, either 'json' or 'line'
:type protocol: str
:param time_precision: Either 's', 'm', 'ms' or 'u', defaults to None
:param time_precision: Either 'n', 'u', 'ms', 's', 'm' or 'h',
defaults to None
:type time_precision: str
"""
if protocol == 'json':
Expand Down