I was wondering how I would go about allowing and prompting the user with a dialog box that allows for them to choose any csv file from any directory and being able to read that csv file?
Asked
Active
Viewed 1,086 times
1 Answers
2
Are you not using any GUI library? You'll need one for a "dialogue box" to prompt the user. Unless you just want them to enter filepaths in the command line as a string.
There's the Tkinter library, which has this function. https://pythonspot.com/tk-file-dialogs/
from tkinter import filedialog
filepath = filedialog.askopenfilename()

Gavyn
- 56
- 6