Commit 5fc7ae61 authored by Sanjay Yadav's avatar Sanjay Yadav

ENH: Fixed treemap sorting issue.

parent 44cb91b0
Pipeline #31126 failed with stage
in 39 seconds
......@@ -488,7 +488,7 @@ class SubTreemap(object):
summary[key] = summary.index
# If specified, sort the aggregated data
if 'sort' in self.args and self.args['sort'] is callable:
if 'sort' in self.args and callable(self.args['sort']):
summary = self.args['sort'](summary)
pad = self.args.get('padding', 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment