i want to add a row with ~20K symbols to each existing row in dataframe
You can find an example on a picture below. Basically I just need to add the row from Table 2 to every row of Table 1 to get Table 3.
To do this, I use
concatenated_rows = pd.concat([pd.concat([df.iloc[[0]], row], axis=1) for _, row in df2.iterrows()], ignore_index=True)
which ends in: killed
is there any way to create this dataset without getting it killed due to memory problem?