Find Invalid Tweets by Length
IntuitionWe need to find tweets where the length of the content is greater than 15. Since thecontentcolumn is a string, we can use string length functions to fi
### **Intuition**  
We need to find tweets where the length of the content is greater than 15. Since the `content` column is a string, we can use string length functions to filter out invalid tweets.  

### **Approach**  
1. Use `.str.len()` to compute the length of each tweet in the `content` column.  
2. Create a boolean mask to filter tweets where the length is **greater than 15**.  
3. Select only the `tweet_id` column to return the required result as a **DataFrame**.  

### **Complexity**  
- **Time Complexity:** $$O(n)$$
 We iterate through all tweets once to check their lengths  
- **Space Complexity:** $$O(1)$$
  We modify the existing DataFrame without using extra space 
# Code
```pythondata []
import pandas as pd

def invalid_tweets(tweets: pd.DataFrame) -> pd.DataFrame:
    tweet = tweets[tweets['content'].str.len() > 15][['tweet_id']]
    return tweet
```
['Pandas']