pandas dataframe insert the entire length of a column code example Example: create new column with length of old column value python df['length'] = df['column'].str.len()