Pandas: How to give a unique id (the smallest one) when it appears in several rows?

后端 未结 0 1043
青春惊慌失措
青春惊慌失措 2020-12-10 05:01

I have a pandas dataframe looking like this:

ner_id  art_id  ner
0       0      emmanuel macron
1       0      paris
2       0      france
3       1      pari         


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