'How can I split a data into small datasets by rows?

I have a dataset of 60000x32. I want to split it like that first split= (0:126,:) second=(126:252,:) ` third= (252:378,:) .. .. till the end...

It should be in that order. Every split needs to be in the size of 126x32. How can I do that?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source