Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix python2 str() in visualization #5093

Merged
merged 1 commit into from
May 29, 2018
Merged
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
6 changes: 3 additions & 3 deletions superset/viz.py
Original file line number Diff line number Diff line change
@@ -1089,11 +1089,11 @@ def to_series(self, df, classed='', title_suffix=''):
if df[name].dtype.kind not in 'biufc':
continue
if isinstance(name, list):
series_title = [str(title) for title in name]
series_title = [text_type(title) for title in name]
elif isinstance(name, tuple):
series_title = tuple(str(title) for title in name)
series_title = tuple(text_type(title) for title in name)
else:
series_title = str(name)
series_title = text_type(name)
if (
isinstance(series_title, (list, tuple)) and
len(series_title) > 1 and