'How can 'the nested renamer error' be solved from this jupyter notebook

I'm trying to replicate the next notebook for a class, specifically the line Input [32]

In[32] bin_stats = joined.groupby('bins_index')['offset'].agg({'fold': len, 'min_offset': np.min})

but I get the error SpecificationError: nested renamer is not supported



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source