Uzyskanie pierwszego elementu z każdej listy w kolumnie z list
# df['new_column'] = df['codes'].str.get(0)
df['new_column'] = df['codes'].str[0]
Horrible Hoopoe
# df['new_column'] = df['codes'].str.get(0)
df['new_column'] = df['codes'].str[0]