Add Dataframe to list of dataframes

Question:

I have the following list of Dataframes twice:
List of Dataframes

Now i want to combine these lists to one list. So i want to add all the Dataframes from list two to list one.

Simple example:

a = pd.DataFrame([2,3,4,5])
b = pd.DataFrame([4,7,8,9,10])

c = [a,b]

d = pd.DataFrame([2,3,4,5])
e = pd.DataFrame([4,7,8,9,10])

f = [d,e]

# New list automatically:
g = [a,b,d,e]
Asked By: luscgu00

||

Answers:

You want to expand your list:

g = c + f

For example:

[1, 2, 3] + [4, 5, 6]
>>> [1, 2, 3, 4, 5, 6]
Answered By: 3dSpatialUser
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.