A co-worker of mine is trying to combine a matrix and a Series and is trying to see if there is a native pandas way to do so instead of using a loop.
Example if I had a dataframe that consisted of
1, 2, 3
4, 5, 6
7, 8, 9
and a Series with values
13, 14, 15
Then the desired result would be
1, 2, 3, 13
1, 2, 3, 14
1, 2, 3, 15
4, 5, 6, 13
4, 5, 6, 14
4, 5, 6, 15
7, 8, 9, 13
7, 8, 9, 14
7, 8, 9, 15
Is there a pandas specific method of achieving this effect. I am not sure what specifically to search to find this and a few attempts of what was similar enough in my head failed.