0

This is the dataframe snippet:

House df

I want to drop those rows where house_df['total_sqft']/house_df['bhk']<60

for that I wrote:

house_df = house_df.query(~house_df['total_sqft']/house_df['bhk']<60)

But getting error:

TypeError: ufunc 'invert' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

Any help is appreciated.

Sam2021
  • 3
  • 4
  • please don't use images, provide a [reproducible example](https://stackoverflow.com/questions/20109391/how-to-make-good-reproducible-pandas-examples) as **text** – mozway Mar 31 '23 at 07:34

0 Answers0