I want to call a variable that was created as a string. For example,
import pandas as pd
a_1 = pd.series([1, 2, 3])
a_2 = pd.series([2, 3, 4])
a_3 = pd.series([3, 4, 5])
Now I want to use a for loop to call all these variables. Something like:
for i in range(1,4):
print(a_{i})
I have tried using placeholders but they do not work for series.