Find representative observation by mean for each class in pandas

前端 未结 0 596
南方客
南方客 2021-02-02 04:07

I have an dataset with multiclass and I want to get representative row for each class. For instance,

import pandas as pd
df = pd.DataFrame({\'A\':[1,2,3,4,5,1,2,3         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题