The csv file is way to big, so I am reading it chunk by chunk. Therefore, I use read_csv with chunksize.
I want to store all rows, where the last entry has the value 1 in one file and all the other rows where the last entry is 0 in another file.
Suppose it looks like this:
ID A B C
0 0.0 0.1 1
1 0.1 0.2 0
2 0.1 0.0 1
So, I want to store row with ID 0 and 2 in one file and the row with ID 1 in another file.
How do I do that with pandas?