Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
chore(dataframe_client): update to handle empty tags in dataframe client
Browse files Browse the repository at this point in the history
  • Loading branch information
sebito91 committed Apr 10, 2020
1 parent 8a8b8ff commit b038ef3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
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
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

0 comments on commit b038ef3

Please sign in to comment.