Beats 100.00% Apply Mask
Approach\n Describe your approach to solving the problem. \nCreate a mask where the length of content field is greater than 15. \n\n# Code\n\nimport pandas as p
# Approach\n<!-- Describe your approach to solving the problem. -->\nCreate a mask where the length of content field is greater than 15. \n\n# Code\n```\nimport pandas as pd\n\ndef invalid_tweets(tweets: pd.DataFrame) -> pd.DataFrame:\n\n    mask = tweets[\'content\'].str.len() > 15\n\n    return tweets.loc[mask][[\'tweet_id\']]\n```
['Pandas']