How to take Text Input from a user

Hi all,
Has anyone successfully tried to use this input function to get the location of a file and use it to load data?
I’m a entering the location of the file in my system and using pandas to read the csv but I haven’t been able to see the data.
Thanks in advance