I am trying to convert dataframe back to array. I started with array as follows
1.0,2.0,1.0,4.0;2.0,3.0,1.0,2.0;1.0,4.0,6.0,3.0I convert to dataframe with
with open('PV.csv','r') as f: array = [l.split(",") for l in f.readline().split(";") if l]which gives
1.0 2.0 1.0 4.02.0 3.0 1.0 2.01.0 4.0 6.0 3.0The data is saved as a CSV which looks like this when opened with excel
I am trying to use join to put it back together in the CSV file but I can't work out how to split the values by comma and the lines by semicolon as original.
