I want to create python dictionary with pandas data frame column 2(source) and column 3(description) and group by column 1(title) Also, I want to get values of only provided titles titles = ['test1','test2']
title source description
1 Test1 ABC description1
2 Test2 ABC description2
3 Test2 DEF description3
4 Test3 XYZ description4
output = {'Test1':{'ABC':'description1'},'Test2':{'ABC':'description2':'DEF':'description3'}