title: PandasError: DataFrame constructor not properly called
body: <p>I am trying to convert some values to a dataframe. I have used the following code to achieve this:</p>
  
  <pre><code>import pandas as pd
  import numpy as np
  
  k = 5
  N = 8
  
  d = ({'Time' : np.random.randint(k, k + 100 , size=N),
      'Events' : ['ABC','DEF','GHI','JKL','ABC','DEF','GHI','JKL'],
      'Number1' : ['xx','xx',1,'xx','xx','xx',2,'xx'],
      'Number2' : [1,1,'xx',1,'xx',2,'xx',2]}),
  
  df = pd.DataFrame(data=d)
  </code></pre>
  
  <p>However, this produces an error code <code>PandasError: DataFrame constructor not properly called!</code>. </p>
  
  <p>I have tried to alter the code to <code>df = pd.DataFrame(eval(d))</code> but get the same error?</p>
  
  <p>Any suggestions?</p>