Skip to content

Commit b1eafac

Browse files
author
Jay Clifford
committed
Hotfix: dataframe time handler
1 parent ee7758f commit b1eafac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb_client_3/write_client/client/write/dataframe_serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def __init__(self, data_frame, point_settings, precision=DEFAULT_WRITE_PRECISION
310310

311311
self.column_indices = {name: index for index, name in enumerate(data_frame.columns)}
312312

313-
if self.timestamp_column is not None or self.timestamp_column not in self.column_indices:
313+
if self.timestamp_column is None or self.timestamp_column not in self.column_indices:
314314
raise ValueError(f"Timestamp column {self.timestamp_column} not found in DataFrame. Please define a valid timestamp column.")
315315

316316
#

0 commit comments

Comments
 (0)