I have a very massive csv file. I would like to get one row, every 3 rows, in a dataframe. It is more or less like resampling the csv.
Let's say, I have a csv file like this :
4 5
9 2
3 7
1 5
2 4
9 10
And I want my dataframe to be :
4 5
1 5
If I read the csv and then drop 1 row every 3 rows, it is useless because it is taking too much time. Does someone have an idea ? :) (By the way, I am using Python)
Cheers