CSV with dynamic number of columns

Hi!

Does anybody know how to read from a .csv file if the names of the columns is not known/changing?
Furthermore, I am in need of making plots of .csv files not knowing the number of columns. Like in my web application you can compare data from several cities and the user can select the cities that should be compared. So I plot the data of the cities in different colors in the same plot. This is easy if the number and name of the cities is given…

If this does not work with .csv files, is there any other data structure that I could use to get my data and for which plotly provides this functionality?

I couldn’t find any topic targeting at my Problem, hopefully anybody can help.

Verena :slight_smile: