Pandas Spalten String First n Zeichen
df1['StateInitial'] = df1['State'].str[:2]
print(df1)
Lonely Leopard
df1['StateInitial'] = df1['State'].str[:2]
print(df1)