Allowing users to select between data files


#1

Hi All,

I have an app where I’d like to allow a user to select between a number of different data files that would be local to the app itself. For example, in the same directory as the app could be a folder called “data” and in that folder there could be three (or many more) different csv files. Then, ideally, when the user accesses the app, they would be able to choose which of those files they want to plot.

What would be a good approach to this?

It would be great if I could just generate a drop down with all the file names and then once a user selects one, it would read in using pd.read_csv(‘selected.csv’). And then the plots would populate from there.

Thanks!


#2

Hate to nag, but any thoughts on this? I haven’t been able to come up with any compelling solutions so far.