Limit the catogeries of median income

Why we are limiting the catogeries of median income??

We are not limiting them. The original data was limited while it was being collected.

What we are doing here

Why we are looping there??

for train_index, test_index

“original data was limited” i did not understand.

What do you want to say here??

I would request you to go back to the tutorial video, this has been explained there in details.

Why we are deviding the median_income by 1.5