FunctionRacerProblemsRace

Invalid Tweets

EasypandasPython

tweets has columns id and content (text). A tweet is invalid if its content is longer than 15 characters. Return the ids of invalid tweets as a list, in the order they appear.

Example 1

tweets {"id":[1,2],"content":["hello world","this tweet is far too long"]}
returns [2]

The second one has 26 characters.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More pandas problems