String kolumny pandas pierwszy n znaki
df1['StateInitial'] = df1['State'].str[:2]
print(df1)
Lonely Leopard
df1['StateInitial'] = df1['State'].str[:2]
print(df1)