pd.DataFrame: TypeError: 'dict' object is not callable
ebbingcasa
Registered Posts: 24 ✭✭✭✭✭
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.
Best 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
-
CoreyS Dataiker Alumni, Dataiku DSS Core Designer, Dataiku DSS Core Concepts, Registered Posts: 1,150 ✭✭✭✭✭✭✭✭✭
Thanks again for posting your solution @ebbingcasa
!