'Splitting A CSV into multiple CSV based on Row count

Is there a way to split a CSV that has 10003 rows or some odd number into 11 CSV's with 1k row max for each outputted CSV? so 10 will have 1k rows, and 1 will have 3 rows.



Sources

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

Source: Stack Overflow

Solution Source