約10kデータポイントの緯度と経度を郵便番号に変換しようとしています。私は仕事のためにジオコーダーを使用しています。TypeError:float()引数は 'method'ではなく文字列または数値でなければなりません
lat = subsamp['Latitude'].as_matrix
long = subsamp['Longitude'].as_matrix
g = geocoder.google([lat, long], method='reverse')
zip = g.postal
はしかし、ジオコーダを実行する上で、私はエラーを取得する:
は、私は、numpyの配列をパンダシリーズを使用してそれを実行してみましたが、動作しません。TypeError: float() argument must be a string or a number, not 'method'
[ 'zip'(https://docs.python.org/2/library/functions.html#zip)が内蔵され関数を実行してはいけません。名前を 'zip_code'などに変更してください –