title: Create a dataframe from dictionary and both key and value are rows
body: <p>I have a dictionary where keys are patient ids, and values are same for all keys: [1, 2, 3], indicating each patient will visit the clinic 3 times. How can I convert it to a dataframe where both the keys and the values are rows?</p>
  
  <p>Dictionary:</p>
  
  <pre><code>patients = ['Patient01', 'patient02', 'patient03']
  visits = [1,2,3]
  dictionary = {k:visits for k in patients}
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>{'Patient01': [1, 2, 3],
   'patient02': [1, 2, 3],
   'patient03': [1, 2, 3]}
  </code></pre>
  
  <p>I tried </p>
  
  <pre><code>pd.DataFrame.from_dict(dictionary, orient = 'index')
  </code></pre>
  
  <p>but the output is </p>
  
  <pre><code>            0   1   2
  patient02   1   2   3
  patient03   1   2   3
  patient01   1   2   3
  </code></pre>
  
  <p>and what I want is like this:</p>
  
  <pre><code>          visit_num
  patient01  1
  patient01  2
  patient01  3
  patient02  1
  patient02  2
  patient02  3
  patient03  1
  patient03  2
  patient03  3
  </code></pre>