This is the dataframe snippet:
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.