pd.DataFrame: TypeError: 'dict' object is not callable

ebbingcasa
ebbingcasa Registered Posts: 24 ✭✭✭✭✭
edited July 16 in Using Dataiku

Hi everyone,

I've stumbled upon a very odd error in Dataiku. The following snippet (even taken from the official documentation) leads to an error:

d = {'col1': [1, 2], 'col2': [3, 4]}
pd.DataFrame(data=d)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-312-fde5238bb82a> in <module>
      1 d = {'col1': [1, 2], 'col2': [3, 4]}
----> 2 pd.DataFrame(data=d)

TypeError: 'dict' object is not callable

Any idea why that's the case? First time that happens to me in any environment.

Tagged:

Best Answer

  • ebbingcasa
    ebbingcasa Registered Posts: 24 ✭✭✭✭✭
    Answer ✓

    I can't reproduce it but shortly after the prompt of "overwriting" vs. "reloading" the Jupyter Notebook appeared even though I had it only open in one tab. After chosing "overwriting" everything works fine.

Answers

Setup Info
    Tags
      Help me…