I have dataframe with 2 columns and a few thousands of rows. What I need now is drop out, delete, rows which contains 'css', 'jpg', 'png', 'favicon', etc. in column values. It looks like this:
Referer Count
favicon.ico 24
ponto.css 21
mobil/net 16
private/net 14
ort.jpg 11
The desired output is this:
Referer Count
mobil/net 16
private/net 14
I've tried with this:
df[df['Referer'].str.contains('css', 'jpg', 'png', 'favicon.ico')]
But this is what I got:
unsupported operand type(s) for &: 'str' and 'int'