I need to replace an index value in a pandas data-frame, my solution involves looping through the queryset and replacing the values 1 by 1 before converting into a list for pand