I was wondering how I can remove all indexes that containing negative values inside their column. I am using Pandas DataFrames.
DataFrames
Documentation Pandas DataFr
To use and statements inside a data-frame you just have to use a single & character and separate each condition with parenthesis.
For example:
data = data[(data['col1']>0) & (data['valuecol2']>0) & (data['valuecol3']>0)]