I've created empty dataframe that I have to fill.
d = {'A': [], 'B': [], 'C': []}
dataframe = pd.DataFrame(data=d)
Then I am assigning data like this:
dataframe['A'] = some_list_1a
dataframe['B'] = some_list_1b
dataframe['C'] = some_list_1c
So my dataframe is filled like this:
A B C
----------------
val1 val1 val1
val1 val1 val1
val1 val1 val1
Then I have to add new values from list but the previous way is not working:
dataframe['A'] = some_list_2a
etc.
That's what I want:
A B C
----------------
val1 val1 val1
val1 val1 val1
val1 val1 val1
val2 val2 val2
val2 val1 val2
val2 val2 val2
(val1 - values from first lists, val2 - values from second lists)
I know I can make second dataframe and use concat
method, but is there another way of doing it?