Fix python2 str() in visualization (#5093)

This commit is contained in:
zjj 2018-05-30 01:33:22 +08:00 committed by Maxime Beauchemin
parent c18ef89034
commit 459267785f
1 changed files with 3 additions and 3 deletions

View File

@ -1089,11 +1089,11 @@ class NVD3TimeSeriesViz(NVD3Viz):
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