Skip to content

Commit

Permalink
viz: make sunburst work again (#728)
Browse files Browse the repository at this point in the history
By using a different method for renaming the metric columns
Thanks to @simobasso for the help!

Fix #673
  • Loading branch information
xrmx authored and mistercrunch committed Jul 13, 2016
1 parent 082645d commit 212284c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions caravel/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -1304,9 +1304,8 @@ def get_data(self):
metric = self.form_data.get('metric')
secondary_metric = self.form_data.get('secondary_metric')
if metric == secondary_metric:
ndf = df[cols]
ndf['m1'] = df[metric]
ndf['m2'] = df[metric]
ndf = df
ndf.columns = [cols + ['m1', 'm2']]
else:
cols += [
self.form_data['metric'], self.form_data['secondary_metric']]
Expand Down

0 comments on commit 212284c

Please sign in to comment.