I'm trying to create a pandas dataframe like I have been doing for years now

```
import pandas as pd
pd.DataFrame({'a':1,'b':2})

```

And there's an error right there - 

```
ValueError: If using all scalar values, you must pass an index 

```

I also tried 

```
pd.DataFrame.from_dict({'a':1,'b':2})

```

Again same error - 

```
ValueError: If using all scalar values, you must pass an index 

```

I just want to create a dataframe with columns 'a' and 'b', with values 1 and 2

```
a b
1 2

```

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.