Nested loop problem in python while working with pandas

I am trying to created a nested loop to load multiple files in an s3 bucket and concatenate them into a single dataframe. I am having trouble in arranging the nested loops in order to do this.
Here is my code:
import json
import pandas as…