我正在做pandas做数据透视表,当做groupby时(计算不同的观察结果) aggfunc={"person":{lambda x: len(x.unique())}}给我以下错误: 'DataFrame' object has no attribute 'unique' 任何想法如何修复它?
aggfunc={"person":{lambda x: len(x.unique())}}
'DataFrame' object has no attribute 'unique'
python pivot-table pandas
pandas ×1
pivot-table ×1
python ×1