Solved

Cognite function with pandas

  • 12 July 2023
  • 1 reply
  • 46 views

Badge

Hi, when I create a function that imports pandas I get  ModuleNotFoundError: No module named 'pandas'

I expected that the function was hosted in a pre-configured runtime environment with many commonly used libraries already installed, including pandas.

Any idea what I am doing wrong?

icon

Best answer by Chyrus Ramesh 13 July 2023, 10:01

View original

1 reply

Userlevel 1
Badge

Hi @czach ,

The Cognite-SDK no longer provides pandas by default. It can be installed using cognite-sdk[pandas] . Specifying that in the requirements.txt will able to fix this issue.

Thank you.

Best regard,

Chyrus

Reply