title: how to convert dictionary to data frame in PySpark
body: <p>Input I have:</p>
  <pre><code>{'A': '1', 'B': '1'}
  </code></pre>
  <p>Output I need:</p>
  <pre><code>+----+----+
  |A   |B   |
  +----+----+
  |   1|   2|
  +----+----+
  </code></pre>
  <p>Code I have tried is below - which is not working.</p>
  <pre><code>v = {'A': '1', 'B': '2'}
  
  rdd = sc.parallelize(v.values())
  
  df = spark.createDataFrame(rdd, list(v.keys()))
  df.show()
  </code></pre>