title: Python 2.7 - Create pandas dataframe using dictionary
body: <p>I'm trying to create a pandas dataframe like I have been doing for years now</p>
  
  <pre><code>import pandas as pd
  pd.DataFrame({'a':1,'b':2})
  </code></pre>
  
  <p>And there's an error right there - </p>
  
  <pre><code>ValueError: If using all scalar values, you must pass an index 
  </code></pre>
  
  <p>I also tried </p>
  
  <pre><code>pd.DataFrame.from_dict({'a':1,'b':2})
  </code></pre>
  
  <p>Again same error - </p>
  
  <pre><code>ValueError: If using all scalar values, you must pass an index 
  </code></pre>
  
  <p>I just want to create a dataframe with columns 'a' and 'b', with values 1 and 2</p>
  
  <pre><code>a b
  1 2
  </code></pre>
  
  <p>I'm pretty sure this is how it has always worked, but somehow it doesn't anymore. What am I missing? Is this some weird quirk of Python 2.7? Or does Pandas it refuse to work cz its a Sunday morning? Can some please help me out.</p>