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

Solved!
ebbingcasa
Level 3
pd.DataFrame: TypeError: 'dict' object is not callable

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.

0 Kudos
1 Solution
ebbingcasa
Level 3
Author

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.

View solution in original post

2 Replies
ebbingcasa
Level 3
Author

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.

CoreyS
Dataiker Alumni

Thanks again for posting your solution @ebbingcasa!

Looking for more resources to help you use Dataiku effectively and upskill your knowledge? Check out these great resources: Dataiku Academy | Documentation | Knowledge Base

A reply answered your question? Mark as โ€˜Accepted Solutionโ€™ to help others like you!
0 Kudos

Labels

?
Labels (2)
A banner prompting to get Dataiku