Skip to content
Advertisement

Check if the dtype:object is NaN

Hi I have a following df:

JavaScript

I would like to to add the latitude and longitude columns after the city name, while where there are NaN and # value I would like to leave new cells empty or with 0 value.

what I tried:

JavaScript

the error that I get:

JavaScript

Advertisement

Answer

You can try:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement