Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

splitting column values in pandas

df[['A', 'B']] = df['AB'].str.split('@', 1, expand=True)
#'@' - Split at @
#1 = Axis 1 i.e on column level
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #splitting #column #values #pandas
ADD COMMENT
Topic
Name
9+2 =