FunctionRacerProblemsRace

Count Names Containing

EasypandasPython

people has a column name. Return how many names contain the text piece anywhere inside, ignoring upper and lower case, as an int.

Example 1

people {"name":["Maria","Ari","Bob"]}
piece "ari"
returns 2

Maria and Ari both contain "ari".

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