I have this issue that I cannot seem to get right. Whether it is because I missunderstand lists and arrays, I don\'t know. I have a dataframe consisting of data in this form