# importing pandas package import pandas # importing numpy package import numpy # lists to hold ticket details all_vegetables = ["Potatoes", "Carrots", "Cabbage", "Onions", "Pumpkin", "Cauliflower", "Broccoli", "Lettuce", "Tomatoes", "Cucumber"] all_vegetables_costs = [2.20, 2.50, 2.70, 3.00, 3.30, 3.60, 4.00, 7.00, 10.00, 13.20] vegetables_dict = { 'Vegetables': all_vegetables, 'Vegetables Price': all_vegetables_costs, } # create dataframe / table from dictionary vegetables_frame = pandas.DataFrame(vegetables_dict) # rearranging index vegetables_frame.index = numpy.arange(1, len(vegetables_frame) + 1) print(vegetables_frame) print()