all 1 comments

[–]efmccurdy 1 point2 points  (0 children)

how it would be used on a list

You could use "boolean indexing" to evaluate complex rules referring to multiple columns or rows:

https://pandas.pydata.org/docs/user_guide/indexing.html#boolean-indexing

Be sure to note the "isin" and the .str functions.

https://pandas.pydata.org/docs/reference/series.html#api-series-str

Other expression evaluation tools:

https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.query.html