I'm new to Python so I'm not sure what this is called. How do I do something (attach to a variable, read it, etc.) to a file with the name of a file followed by a number (ex. Myfile1, Myfile2)?
Let's assume that there are a thousand files so it's not possible to type each number individually.
for n in range(0,1000):
Myfile + str(n) = pd.read_csv(str(file(n)))
# Another example
for n in range(0,9):
shape_201 + str(n) = (happiness201 + n).shape
Something like an asterisk (*) for a wildcard? Now that I have typed this out, regex comes to mind... Is that the best way to go?