I have 3 lists -
Name = ["ABC", "DEF", "GHI"]
Year = [2016,2017]
Month = ["Aug","Jul","Jun"]
I want to create a dataframe from these lists as follows -
df -
Name Year Month
ABC 2016 Aug
ABC 2016 Jul
ABC 2016 Jun
ABC 2017 Aug
ABC 2017 Jul
ABC 2017 Jun
DEF 2016 Aug
DEF 2016 Jul
DEF 2016 Jun
DEF 2017 Aug
DEF 2017 Jul
DEF 2017 Jun
..... and so on
for all values in the lists. Is there any method in python(pandas or numpy or scipy) to perform this? Or is looping the only way to perform this?