I have two pandas dataframes, called data and data1 (which I extracted both from an unestructured excel file).
data is a one row dataframe. data1 is a multiple row dataframe (it will vary depending on the original excel file).
What I want to achieve is to concatenate both, but the values from data repeat for each row in data1. resulting like this:
| data | data | data | data1 | data1 | data1 |
|---|---|---|---|---|---|
| One | Two | Three | asda | dsad | dsass |
| One | Two | Three | dsad | dasda | dasds |
| One | Two | Three | asda | asdsss | dsass |
| One | Two | Three | adsa | dsad | asdds |
Is there an efficient way to do this? I've been doing it manually, but it is taking too long because there are like 1k+ files.
Best regards.

new_df = df.merge(df2no need to explicitly mention how='cross'