I have two Dataframes. My goal is to create a new column with the product of the multiplication from the column "number" and the column "multiplier" based on the name column.
First DataFrame:
id name number
1 aa 3
2 aa 6
3 bb 2
4 bb 8
5 cc 3
Second Data Frame:
id name multiplier
20 aa 2
21 bb 4
23 cc 6
Result:
id name number product
1 aa 3 6
2 aa 6 12
3 bb 2 8
4 bb 8 32
5 cc 3 18
pandas.read_clipboard(), there is really no more need for "defining the dataframes."