i have a Dictionary which has key value pairs like below
dict= ('P06', 'P09'): 36340, ('P01', 'P05', 'P06', 'P09'): 10085, ('P01', 'P06'): 36337, ('P01', 'P09'): 49897, ('P02', 'P09'): 11573.....
I want it to be converted into a Dataframe of the below format
Product Id Count Lenght
('P06', 'P09') 36340 2
('P01', 'P05', 'P06', 'P09') 10085 4
('P01', 'P06') 36337 2
Any help is greatly appreciated thank you!