Here is how it looks like:
dictionary = { '1' : 'mine.csv' , '2' : 'yours.csv' , '3' : 'ours.csv' ...}
I want to ask user input :
def get_filters():
question = input('which file would you like to view its contents ?' , 1)
so answer should be like : '1' >> it opens first file from dictionary to start filter.
I want all files to open from a single code :
def load_data(question, ..):
df= pd.read_csv(dictionary[question])
since df is going to be used in filtering all data inside files.
but this does not load file , and program consider filtering output as tuples.
How to connect dictionary key and value to load data , like: if input is key : load value . Or simple other ways to do it?