TypeError: unhashable type: 'list' when use groupby in python – stackoverflow.com

There is something wrong when I use groupby method: data = pd.Series(np.random.randn(100),index=pd.date_range('01/01/2001',periods=100)) keys = lambda x: [x.year,x.month] data.groupby(keys).mean() ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "TypeError: unhashable type: 'list' when use groupby in python – stackoverflow.com"