Concatenate rows of pandas DataFrame with same id,df1.reset_index()