From b47ca785c7c068d6ba5985fb25efcd4c0e565a15 Mon Sep 17 00:00:00 2001 From: Alexander Mancevice Date: Sat, 9 Apr 2016 00:27:32 -0400 Subject: [PATCH] Preserve order of breakdowns in bar_dist (#302) --- caravel/viz.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/caravel/viz.py b/caravel/viz.py index 24727c2ec88d2..d81066fd1bc26 100644 --- a/caravel/viz.py +++ b/caravel/viz.py @@ -926,9 +926,8 @@ def get_df(self, query_obj=None): def get_data(self): df = self.get_df() - series = df.to_dict('series') chart_data = [] - for name, ys in series.items(): + for name, ys in df.iteritems(): if df[name].dtype.kind not in "biufc": continue if isinstance(name, string_types):