mask = (predicted_data['Description'].str.len() > 10) & (predicted_data['Description'].str.len() < 20) code example
Example: make length string in pandas
df['name_length'] = df.Name.str.len()
// or
df['name_length'] = df.Name.apply(len)
df['name_length'] = df.Name.str.len()
// or
df['name_length'] = df.Name.apply(len)