I have a pandas DataFrame with the following:
import pandas as pd df = pd.DataFrame({\'group_id\': [1,1,2,2], \'name\':[\'Arthur\',\'Bob\',\'