I would like to add an index column based on existing columns. Duplicates would share the same index. For example,
If the values for the two columns ['old_index','year'] are the same, then the new index would be same. The value in the column 'num' does not matter.
I'm wondering if anyone can help. Thank you very much!