Skip to content

Commit 49af5ab

Browse files
author
Debanjan
committed
[fix] covering scenario where is a string
1 parent 366e771 commit 49af5ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/_dataframe_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def _convert_dataframe_to_lines(self,
385385
# Generate line protocol string
386386
measurement = _escape_tag(measurement)
387387
# prepend comma to non-Null tag-rows
388-
tags = ("," + tags).str.replace(r"^,$","")
388+
tags = pd.Series("," + tags).str.replace(r"^,$","")
389389
points = (measurement + tags + ' ' + fields + ' ' + time).tolist()
390390
return points
391391

0 commit comments

Comments
 (0)