I am very new in python programming. I couldn't find any way to write this part of my code. I would appreciate, if some one can help me.
I have a dataframe with 3 attributes(4000 records). Attribute x1,x2,class(Binary).
At first I made a scatter plot and realized that x1
range is between 3 to 13 and x2
range is between 3 to 8
I want to get data in some ranges: for example:
if 2.5< x1 < 3.5 and 3.5< x2 < 4.5 ---> df1
if 3.5 <=x1 < 4.5 and 4.5<=x2 < 5.5 ---> df2
if ....