Im new to python and came across a code snippet.
df = df[~df[\'InvoiceNo\'].str.contains(\'C\')]
Would be much obliged if I could know what
if you want to apply it to all columns in a data frame you can use
df.any(axis=1) df = df[~(df>0).any(axis=1)]
This checks if val > 0 in all columns of the data frame and returns a Boolean. Likewise, axis=0 is for index/row wise.
if val > 0