Two data frames of different lengths:
df1: df2:
Column1 Column2 Column3 Column1 Column2
Url Name Description Type 1 Duration 1
Type 2 Duration 2
Type 3 Duration 3
Type 4 Duration 4
How to get such a table?
Column1 Column2 Column3 Column4 Column5
Url1 Name1 Description1 Type * Duration 1
Type 2 Duration 2
Type 3 Duration 3
Type 4 Duration 4
I want to write data to Excel table. An example of the required table
Tried:
df1.merge (df2, left_index = True, right_index = True)
df2.join (df2)
As a result, only one line from df2 is written