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

chore(dataframe_client): update to handle empty tags in dataframe client #814

Merged
merged 1 commit into from
Apr 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fix nanosecond time resolution for points (#407 thx @AndreCAndersen && @clslgrnc)
- Fix import of distutils.spawn (#805 thx @Hawk777)
- Update repr of float values including properly handling of boolean (#488 thx @ghost)
- Update dataframe_client to fix faulty empty tags (#770 thx @michelfripiat)

### Removed

Expand Down
3 changes: 2 additions & 1 deletion influxdb/_dataframe_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ def _convert_dataframe_to_lines(self,
del tag_df
elif global_tags:
tag_string = ''.join(
[",{}={}".format(k, _escape_tag(v)) if v else ''
[",{}={}".format(k, _escape_tag(v))
if v not in [None, ''] else ""
for k, v in sorted(global_tags.items())]
)
tags = pd.Series(tag_string, index=dataframe.index)
Expand Down