I\'m trying to write a script that imports a file, then does something with the file and outputs the result into another file.
df = pd.read_csv(\'somefile2018.
glob returns a list, not a string. The read_csv function takes a string as the input to find the file. Try this:
glob
read_csv
for f in glob('somefile*.csv'): df = pd.read_csv(f) ... # the rest of your script