Hello guys I need your help to get the expected output/result in pandas dataframe. I have a file which contains data as shown here:
Time/Location Value
Location1
Today 3
Next day 0
Weekend -6
Next week 1
Location2
Today 2
Next day -1
Weekend 3
Next week 2
Location3
Today 1
Next day 3
Weekend 1
Next week -1
Location4
Today 3
Next day 2
Weekend 5
Next week 4
Location5
Today 4
Next day 2
Weekend 3
Next week 1
Location6
Today -1
Next day 3
Weekend 3
Next week 2
And expected the output as the following which is creating new column for the "Location".
Location Time Value
Location1 Today 3
Location1 Next day 0
Location1 Weekend -6
Location1 Next week 1
Location2 Today 2
Location2 Next day -1
Location2 Weekend 3
Location2 Next week 2
Location3 Today 1
Location3 Next day 3
Location3 Weekend 1
Location3 Next week -1
Location4 Today 3
Location4 Next day 2
Location4 Weekend 5
Location4 Next week 4
Location5 Today 4
Location5 Next day 2
Location5 Weekend 3
Location5 Next week 1
Location6 Today -1
Location6 Next day 3
Location6 Weekend 3
Location6 Next week 2
I appreciate any help/suggestions....please!
Thank you!