Create A Dataframe Using Nested Loops