I have a large dataset (csv file ) in my memory. I am reading dataset in my python environment. I have to split the dataset when it reaches 1 GB. So, my initial dataset is around 1.8 GB when I read. So, accordingly, I should have two datasets, one with 1 GB of size and the other with remaining.
How to do it ?
The solution should considered time and space complexity both