Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

make length string in pandas

df['name_length'] = df.Name.str.len() 

// or 

df['name_length'] = df.Name.apply(len)
 
PREVIOUS NEXT
Tagged: #length #string #pandas
ADD COMMENT
Topic
Name
4+8 =