8000 Fix the issue#497 for easy to use · influxdata/influxdb-python@a5b2574 · 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 a5b2574

Browse files
Fix the issue#497 for easy to use
#497
1 parent 576a881 commit a5b2574

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

influxdb/_dataframe_client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,10 @@ def _convert_dataframe_to_json(dataframe,
233233
tags = tags if tags is not None else {}
234234
# Assume field columns are all columns not included in tag columns
235235
if not field_columns:
236-
field_columns = list(
237-
set(dataframe.columns).difference(set(tag_columns)))
236+
#field_columns = list(
237+
# set(dataframe.columns).difference(set(tag_columns)))
238+
field_columns_buf = list(set(dataframe.columns).difference(set(tag_columns)))
239+
field_columns = [str(field_column) for field_column in field_columns_buf]
238240

239241
dataframe.index = dataframe.index.to_datetime()
240242
if dataframe.index.tzinfo is None:

0 commit comments

Comments
 (0)
0