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