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.
![](https://uploads-eu-west-1.insided.com/cognite-en/attachment/f98eef5b-e6f6-4d13-babf-bd8253926608.png)
I noted that the dataframe df has some entries :NaN” wherever the csv has a blank.
Then,
![](https://uploads-eu-west-1.insided.com/cognite-en/attachment/d7cc0bfd-a361-4bd8-a416-2f0f440c2222.png)
However, creating events in CDF fails:
![](https://uploads-eu-west-1.insided.com/cognite-en/attachment/754c8c01-ef0a-45a4-8486-9be3211d29a8.png)
the error is:
![](https://uploads-eu-west-1.insided.com/cognite-en/attachment/5af216dc-6b4a-4148-bd29-2f969d5945a0.png)
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.
![](https://uploads-eu-west-1.insided.com/cognite-en/attachment/55583420-7881-4f0f-ad01-10b8921173f2.png)
This throws the same exception when creating events in CDF.
If someone can kindly assist, I would be very grateful.
Thank you,
Doug