Skip to main content
Solved

Cognite function with pandas

  • July 12, 2023
  • 1 reply
  • 50 views

Forum|alt.badge.img

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?

Best answer by Chyrus Ramesh

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

View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img
  • Practitioner
  • 2 replies
  • Answer
  • July 13, 2023

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


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings