Consider swapping 'neighbors' for 'members', there may be more issues, but this might be a place to start.
KeyError Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance)
2888 try:
-> 2889 return self._engine.get_loc(casted_key)
2890 except KeyError as err:
pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc()
pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc()
pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()
pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()
KeyError: 'members'
The above exception was the direct cause of the following exception:
KeyError Traceback (most recent call last)
<ipython-input-40-6f7a7c20e30d> in <module>
6 alpha=0.00001, colors = ['blue','gray'],
7 alpha_col='pvalue',
----> 8 prune_col = 'prune_me')
/opt/conda/lib/python3.7/site-packages/hierdiff/hier_plot.py in plot_hclust_props(Z, title, res, alpha_col, alpha, tooltip_cols, colors, prune_col)
78 tooltip_cols=tooltip_cols,
79 colors=colors,
---> 80 prune_col=prune_col)
81
82 #lines_df = 100 * pd.DataFrame({'x1':np.random.rand(10), 'y1':np.random.rand(10), 'x2':np.random.rand(10), 'y2':np.random.rand(10)})
/opt/conda/lib/python3.7/site-packages/hierdiff/hier_plot.py in _hclust_paths(Z, height, width, margin, res, alpha_col, alpha, tooltip_cols, colors, min_count, prune_col)
145 if not prune_col is None:
146 """Prune (don't print) if all member results are also prune=True"""
--> 147 prune = res.loc[res['cid'].isin(cid_res['members']), prune_col].all()
148 if prune:
149 continue
/opt/conda/lib/python3.7/site-packages/pandas/core/series.py in __getitem__(self, key)
880
881 elif key_is_scalar:
--> 882 return self._get_value(key)
883
884 if (
/opt/conda/lib/python3.7/site-packages/pandas/core/series.py in _get_value(self, label, takeable)
989
990 # Similar to Index.get_value, but we do not fall back to positional
--> 991 loc = self.index.get_loc(label)
992 return self.index._get_values_for_loc(self, loc, label)
993
/opt/conda/lib/python3.7/site-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance)
2889 return self._engine.get_loc(casted_key)
2890 except KeyError as err:
-> 2891 raise KeyError(key) from err
2892
2893 if tolerance is not None:
KeyError: 'members'