I have been searching for an answer for this simple thing for an hour now. I have a pandas dataframe that looks like this:
title | price
"some text 1" 124.5
"some text 2" 543.2
"some text 3" 156.2
"some text 4" "Price N/A"
"some text 5" 216.7
I want to remove the rows that don't contain an actual float price. I tried the suggestion from this answer:
raw_data[raw_data.price.apply(lambda x: x.isnumeric())]
and I get:
AttributeError: 'float' object has no attribute 'isnumeric'
Nothing seems to work for such a simple operation. I tried pretty much all the answers I found on stack and elsewhere.