I'm trying to convert a list into a dataframe, but this list was created by another dataframme, so it has index without header in it, and I'm trying to convert it into another df and failing.
id_range = [100,200,300,400,400]
summary df : a normal df with an index
Name ID
0 Paul 100
1 Lauren 200
2 Beth 300
3 Chris 400
4 Andy 500
list : the df converted into a list with a new column added(it has index without header\column name)
Name Surname ID
0 Paul Logan 100
1 Lauren Text 200
2 Beth Cameron 300
3 Chris Lenon 400
4 Andy Steve 500
new_df : what im trying to do, convert the list into this new_df to make another operation using a df
could you guys help me?
I tried
new_df = pd.DataFrame(list)
but this doesnt give me everything, just one row