Finding the length of every value of a column

We do this by calling the str.len method on one of our columns:

data.County.str.len().head() 

The following is the output:

Get Mastering Exploratory Analysis with pandas now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.