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