I think your problem statement is a little confusing. Couldn’t you just make a sorting by patient in MATLAB and create a new .csv file from the sorted data with 207k entries?
A word of advise however is to do all pandas-loading related work in the init-method of your Dataset as this will make it run much, much faster from my experience.