I have a csv that looks like this:
'-' 'd' '5'
'-' 'd' '9'
'-' 'v' '15'
'-' 's' '8'
'-' 's' '10'
'-' 'q' '3'
I would like to split the data frame every time the number on the last column decreases and save into new file
The output would look like this:
File1:
'-' 'd' '5'
'-' 'd' '9'
'-' 'v' '15'
File 2
'-' 's' '8'
'-' 's' '10'
File 3
'-' 'q' '3'