I am trying to do something really simple, but I couldn't find a solution, yet:
Given a dataframe df I am trying to select a column (with strings) and drop items that are named "x".
I have found questions about removing by index (Drop Elements from Pandas Series by Index) but not by their content.
s = pd.Series(['A', 'B', 'C', 'Aaba', 'Baca', np.nan, 'CABA', 'dog', 'cat'])
Trying to remove:
s.drop('A')
s.drop(s['A'])
How can I achieve that?