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

Commit 72c372f

Browse files
authored
chore(dataframe_client): update to handle empty tags in dataframe client (#814)
1 parent 8a8b8ff commit 72c372f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2727
- Fix nanosecond time resolution for points (#407 thx @AndreCAndersen && @clslgrnc)
2828
- Fix import of distutils.spawn (#805 thx @Hawk777)
2929
- Update repr of float values including properly handling of boolean (#488 thx @ghost)
30+
- Update dataframe_client to fix faulty empty tags (#770 thx @michelfripiat)
3031

3132
### Removed
3233

influxdb/_dataframe_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,8 @@ def _convert_dataframe_to_lines(self,
388388
del tag_df
389389
elif global_tags:
390390
tag_string = ''.join(
391-
[",{}={}".format(k, _escape_tag(v)) if v else ''
391+
[",{}={}".format(k, _escape_tag(v))
392+
if v not in [None, ''] else ""
392393
for k, v in sorted(global_tags.items())]
393394
)
394395
tags = pd.Series(tag_string, index=dataframe.index)

0 commit comments

Comments
 (0)