I have a function which returns many values on every run but I am interested in dataframe being returned. I am currently using a list to store dataframes and then at the end I use pd.concat to convert all the dfs in to a single df. It's working fine but when I try to push this code for review I face linting errors "too many local variables'. There's no way I can deal with other varibales so, is there a way more efficient to store these dataframes and then later convert it to a single frame.
Currently, the code is something like this:
df_list = []
....
_, _, df = function_call()
df_list.append(df)
....
df = pd.concat(df_list, axis=0)