What is the best way to read data from txt/csv file, separate values based on columns to arrays (no matter how many columns there are) and how skip for example first row if file looks like this:
Considering existing libraries in python.
So far, I've done it this way:
pareto_front_file = open("Pareto Front.txt")
data_pareto_front = pareto_front_file.readlines()
for pareto_front_row in data_pareto_front:
x_pareto.append(float(pareto_front_row.split(' ')[0]))
y_pareto.append(float(pareto_front_row.split(' ')[1]))
but creating more complicated things I see that this way is not very effective