I have a huge list of Users_id that I want to concatenate. I know how to do it in excel but the file is much too large.
Users ID
101 101
102 101,102
103 101,102,103
104 101,102,103,104
Here is what I want to achieve. Here is what I have so far.
import pandas as pd
df = pd.read_csv('file.csv')
pd.concat = df['USER ID']=.astype(str)+','+df['USER ID']