id
and st
id = [243,2352,474, 84,443]
st = [1,3,5,9,2,6,7]
I wish to create a pandas dataframe df
using them so that each value of the list id
have all values from st
list.
My expected output is like:
id st
243 1
243 3
243 5
243 9
243 2
243 6
243 7
2352 1
2352 3
2352 5
2352 9
2352 2
2352 6
2352 7
and so on...
How can I create the same pandas dataframe ?