Comments (4)
Could you please post the full error traceback?
Another error started this. I was getting AttributeError: Can only use .str accessor with string values!
at line 130, in _normalize_postal_code (in pgeocode.py).
The line:
codes['postal_code'] = codes.postal_code.str.upper()
After updating pgeocode #28 resolved but I'll probably start a new issue for the AttributeError if I cant figure it out in a bit.
update: was testing out a sample of zip codes from another data set and that's when I saw the AttributeError. It looks like I was passing pgeocode.query_postal_code a list of integers rather than a list of strings; AttributeError is resolved after making the change to strings.
from pgeocode.
Could you please post the full error traceback?
from pgeocode.
upgraded to 0.2.1
from pgeocode.
upgraded to 0.2.1
If it failed with 0.2.0 it's likely it will fail with 0.2.1 as well.
from pgeocode.
Related Issues (20)
- Inconsistency in "country code" column name HOT 5
- Throwing HTTP 404 error HOT 8
- Add a fallback data source when https://download.geonames.org/export/zip/{country}.zip fails HOT 3
- Pgeocode throws HTTP Error 404: Not Found HOT 5
- Pgeocode | HTTPError: HTTP Error 404: Not Found HOT 4
- Incorrect distance showing HOT 3
- ValueError on CA, UK and IE postcodes
- Include a requirements.txt HOT 2
- Slow performance for Portugal (PT) HOT 1
- [Solved] Import from first hard coded URL fails with "[SSL: CERTIFICATE_VERIFY_FAILED" HOT 7
- latitude indexing bug for _index_postal_codes HOT 1
- Find cities at a specific distance HOT 1
- How can i convert different country code? HOT 2
- country code DZ is not responding HOT 1
- Please Update Countries HOT 1
- Not able to identify few postal codes and find the distances between them for country CA
- ValueError: country=NL_FULL is not a known country code. See the README for a list of supported countries HOT 1
- KeyError: "There is no item named 'DE.txt' in the archive"
- County Code for Naples is NA HOT 3
- Handle detailed postal codes for Morocco
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgeocode.