1,使用pandas内置的.str.len()函数
df["contentLen”]=df["column"].str.len()
2.使用pandas内置函数map+lamda
df["contentLen"]=df["column"].map(lambda x:len(x))