I have an index(list) called newSeries0 and I'd like to do the following.
for seriesName in newSeries0:
seriesName=fred.get_series_first_release(seriesName)
seriesName=pd.DataFrame(seriesName)
seriesName=seriesName.resample('D').fillna('ffill')
seriesName.rename(columns={'value': str(seriesName)}, inplace=True)
In other words, I'd like to create a dataframe from each name in newSeries (using this fred api) which has the (variable) name of that newSeries. Each dataframe is forward filled and the column name of the data is changed to the name of the data series.
Is zip or map involved?
In the end I'd like to have
a=dataframe of a
b=dataframe of b
c=dataframe of c
...
where a,b,c... are the names of the data series in my index(list) newSeries0, so when I call a I get the dataframe of a.