You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,8 @@
1
1
## 1.30.0 [unreleased]
2
2
3
+
### Features
4
+
1.[#440](https://github.com/influxdata/influxdb-client-python/pull/440): Add possibility to specify timestamp column and its timezone [DataFrame]
:param chunk_size: The size of chunk for serializing into chunks.
42
42
:key data_frame_measurement_name: name of measurement for writing Pandas DataFrame
43
43
:key data_frame_tag_columns: list of DataFrame columns which are tags, rest columns will be fields
44
-
"""
44
+
:key data_frame_timestamp_column: name of DataFrame column which contains a timestamp. The column can be defined as a :class:`~str` value
45
+
formatted as `2018-10-26`, `2018-10-26 12:00`, `2018-10-26 12:00:00-05:00`
46
+
or other formats and types supported by `pandas.to_datetime <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.to_datetime.html#pandas.to_datetime>`_ - ``DataFrame``
47
+
:key data_frame_timestamp_timezone: name of the timezone which is used for timestamp column - ``DataFrame``
48
+
"""# noqa: E501
45
49
# This function is hard to understand but for good reason:
46
50
# the approach used here is considerably more efficient
:param precision: The precision for the unix timestamps within the body line-protocol.
269
290
:key data_frame_measurement_name: name of measurement for writing Pandas DataFrame
270
291
:key data_frame_tag_columns: list of DataFrame columns which are tags, rest columns will be fields
271
-
"""
292
+
:key data_frame_timestamp_column: name of DataFrame column which contains a timestamp. The column can be defined as a :class:`~str` value
293
+
formatted as `2018-10-26`, `2018-10-26 12:00`, `2018-10-26 12:00:00-05:00`
294
+
or other formats and types supported by `pandas.to_datetime <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.to_datetime.html#pandas.to_datetime>`_ - ``DataFrame``
295
+
:key data_frame_timestamp_timezone: name of the timezone which is used for timestamp column - ``DataFrame``
:key data_frame_measurement_name: name of measurement for writing Pandas DataFrame - ``DataFrame``
295
295
:key data_frame_tag_columns: list of DataFrame columns which are tags,
296
296
rest columns will be fields - ``DataFrame``
297
+
:key data_frame_timestamp_column: name of DataFrame column which contains a timestamp. The column can be defined as a :class:`~str` value
298
+
formatted as `2018-10-26`, `2018-10-26 12:00`, `2018-10-26 12:00:00-05:00`
299
+
or other formats and types supported by `pandas.to_datetime <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.to_datetime.html#pandas.to_datetime>`_ - ``DataFrame``
300
+
:key data_frame_timestamp_timezone: name of the timezone which is used for timestamp column - ``DataFrame``
297
301
:key record_measurement_key: key of record with specified measurement -
298
302
``dictionary``, ``NamedTuple``, ``dataclass``
299
303
:key record_measurement_name: static measurement name - ``dictionary``, ``NamedTuple``, ``dataclass``
The index of `Pandas DataFrame <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html>`_
326
-
is used as a ``timestamp`` for written data. The index should be `PeriodIndex <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.PeriodIndex.html#pandas.PeriodIndex>`_
329
+
If the ``data_frame_timestamp_column`` is not specified the index of `Pandas DataFrame <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html>`_
330
+
is used as a ``timestamp`` for written data. The index can be `PeriodIndex <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.PeriodIndex.html#pandas.PeriodIndex>`_
:key data_frame_measurement_name: name of measurement for writing Pandas DataFrame - ``DataFrame``
59
59
:key data_frame_tag_columns: list of DataFrame columns which are tags,
60
60
rest columns will be fields - ``DataFrame``
61
+
:key data_frame_timestamp_column: name of DataFrame column which contains a timestamp. The column can be defined as a :class:`~str` value
62
+
formatted as `2018-10-26`, `2018-10-26 12:00`, `2018-10-26 12:00:00-05:00`
63
+
or other formats and types supported by `pandas.to_datetime <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.to_datetime.html#pandas.to_datetime>`_ - ``DataFrame``
64
+
:key data_frame_timestamp_timezone: name of the timezone which is used for timestamp column - ``DataFrame``
61
65
:key record_measurement_key: key of record with specified measurement -
62
66
``dictionary``, ``NamedTuple``, ``dataclass``
63
67
:key record_measurement_name: static measurement name - ``dictionary``, ``NamedTuple``, ``dataclass``
The index of `Pandas DataFrame <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html>`_
91
-
is used as a ``timestamp`` for written data. The index should be `PeriodIndex <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.PeriodIndex.html#pandas.PeriodIndex>`_
94
+
If the ``data_frame_timestamp_column`` is not specified the index of `Pandas DataFrame <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html>`_
95
+
is used as a ``timestamp`` for written data. The index can be `PeriodIndex <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.PeriodIndex.html#pandas.PeriodIndex>`_
0 commit comments