I have multiple dataframes and would like a dataframe that contains all column names from said multiple dataframes.
For example :
# Existing Dataframes
df1 =
df1_colA df1_colB df1_colC
0 1 2 3
1 4 5 6
2 7 8 9
df2 =
df2_colA df2_colB df3_colC
0 10 11 12
1 13 14 15
2 16 17 18
df3 =
df3_colA df3_colB df3_colC
0 30 31 32
1 33 34 35
2 36 37 38
I would like to get a dataframe like this :
names =
df_names col_names
0 df1 df1_colA
1 df1 df1_colB
2 df1 df1_colC
3 df2 df2_colA
4 df2 df2_colB
5 df2 df2_colC
6 df3 df3_colA
7 df3 df3_colB
8 df3 df3_colC
Help would be very appreciated and thank you in advance!