I have the following code I wrote:
df = pandas.DataFrame(temp_data_list) return [PatientDataSet(first, rest.tolist()) for first, rest in df.iterro