Having a dataframe as below:
df1 = pd.DataFrame({'Product':['A','A','A','B','B','C','C','C','E','E','E'],
'things':['B','C','D','C','D','D','A','B','A','B','C'],'Marks2':[10,20,6,50, 88,23,140,9,60,65,70]})
df1
current_list=['E', 'A', 'B', 'C']
is it possible that i can create a pivot table with index and columns only contain the current_list values and values is marks2?
expected output:
