TypeError: float() argument must be a string or a number, not 'method'

前端 未结 2 592
长发绾君心
长发绾君心 2021-01-18 16:50

I am trying to convert the latitude and longitude to zipcodes for around 10k data points. I am using geocoder for the task.

lat = subsamp[\'Latitude\'].as_m         


        
2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-18 17:18

    zip is a number or string but you have assigned a function to this value. zip = g.postal -> zip = g.postal()

提交回复
热议问题