I have a dataframe here:
name role
0 Allen Director
1 Kendrick Food
2 Sean Webmaster
3 Jacob PR
I also have another dataframe:
power
0 eat
1 sleep
2 code
Is there a pandas way to add the power dataframe to each member in the team dataframe to make it look like this?
name role power
0 Allen Director eat
1 Allen Director sleep
2 Allen Director code
3 Kendrick Food eat
4 Kendrick Food sleep
5 Kendrick Food code
...
I've tried doing by iterating through the rows but my dataframe is a lot larger than the example I have provided above and I am looking for a pandas approach to do this.