Basically instead of writing
data[data['pos'] == "QB" | data['pos'] == "DST" | ...]
where there are many cases I want to check
I was trying to do something similar to this What's the pythonic method of doing multiple ors?. However, this
data[data['pos'] in ("QB", "DST", ...)]
doesn't work.
I read the documentation here http://pandas.pydata.org/pandas-docs/stable/gotchas.html but I'm still having issues.