Question

ValueError: Out of range float values

  • 18 April 2024
  • 2 replies
  • 19 views

Badge +4

Doing the ‘hands-on’ for Data Engineer Basics - “Learn to Use the Cognite Python SDK “ Course."

I am down to adding events to CDF from  events.csv.

I noted that the dataframe df has some entries :NaN” wherever the csv has a blank.

Then,

However, creating events in CDF fails:

the error is:

 

Next, I replace all the csv blank entries with text “blank”, and read into a dataframe. Now the latter does not have any “NaN” values.

 

This throws the same exception when creating events in CDF.

If someone can kindly assist, I would be very grateful.

Thank you,

Doug

 

 

 


2 replies

Userlevel 3
Badge +6

Hi @Mugless Durry, sorry for the late reply. I will have to go through the course myself and dig a bit into it to check, and if this causes any issues, I will make the needed changes to the events data. 

 

Best regards, 

Userlevel 3
Badge +6

We have made some changes to the course @Mugless Durry ! Please let me know if you still experience the same issues. 

 

Reply