Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

split column in exact spot python

df['Basic Stats'].str[9:13]



0    2010
1    2009
2    2008
3    2007
4    2006
Name: Basic Stats, dtype: object
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #split #column #exact #spot #python
ADD COMMENT
Topic
Name
7+4 =