Tags / concatenation
Here's an example of how you can implement the script as described:
Merging Two DataFrames with Different Column Names Using Inner Join in Python
How to Concatenate Rows in a Pandas DataFrame: A New Version
Understanding Data Frame Concatenation in Python: Handling Empty Rows
Concatenating Two Series in a Pandas DataFrame: A Faster Approach Than You Thought
Combining Data Frames Row by Row Using Pandas: A Powerful Approach for Large-Dataset Analysis