Answers for "how to extract frist 10 characters from a column in python"

0

pandas column string first n characters

df1['StateInitial'] = df1['State'].str[:2]
print(df1) 
Posted by: Guest on March-10-2020

Code answers related to "how to extract frist 10 characters from a column in python"

Python Answers by Framework

Browse Popular Code Answers by Language