I'm new with python but I know R. I want to obtain certain houses with Python thanks to logical conditions that are houses with more than 2000 square meters but less than 4000 square meters. I use this website to understand how to use the logical conditions but I do not achieve a result.
Here is my request:
housesRangeSqft = test_data[(test_data('sqft_living'>=2000)) & (test_data('sqft_living'<=4000))]
But I get the following error in jupyter notebook:
TypeError Traceback (most recent call last) <ipython-input-40-7e39708087dd> in <module>() ----> 1 housesRangeSqft = test_data[(test_data('sqft_living'>=2000)) & (test_data('sqft_living'<=4000))] TypeError: 'SFrame' object is not callable
Here is the structure of test_data
: