How to search out all Zip codes and replace with the first 2 digits, in a Pandas dataframe, with the use of regex?

2017-03-20 Thread David Shi via Python-list
Hi, there, Can anyone help? How to search out all Zip codes and replace with the first 2 digits, in a Pandas dataframe, with the use of regex? For instance, a ZIP code 33132 was found and replaced with 33. Looking forward to hearing from you. Regards. David -- https://mail.python.org/mailman

Re: zip codes

2009-08-18 Thread Grant Edwards
On 2009-08-17, Sjoerd Mullender wrote: > Also in The Netherlands, ZIP codes are much more fine-grained than in > some other countries: ZIP code plus house number together are sufficient > to uniquely identify an address. I.e. you don't need the street name. > E.g., my work add

Re: zip codes

2009-08-17 Thread Piet van Oostrum
> Grant Edwards (GE) wrote: >GE> On 2009-08-16, Shailen wrote: >>> Thanks Martin and Aahz. Anyone know if zip code information is >>> copyrighted for the US? >GE> You can't copyright "information" as such. Only concrete >GE> expressions of information. A particular publication >GE> contai

Re: zip codes

2009-08-17 Thread Nigel Rantor
used for basic user-registration, I'm assuming functionality of this sort must be available for Python. Any suggestions will be much appreciated. There might be an associated can of worms here, for example in the Netherlands zip codes are actually copyrighted and require a license if you

Re: zip codes

2009-08-17 Thread steven.oldner
I don't know how this works in other countries > >> but I imagine that it is likely to be generally the same. > > > Also in The Netherlands, ZIP codes are much more fine-grained than in > > some other countries: ZIP code plus house number together are sufficient >

Re: zip codes

2009-08-17 Thread MRAB
user-registration, I'm assuming functionality of this sort must be available for Python. Any suggestions will be much appreciated. There might be an associated can of worms here, for example in the Netherlands zip codes are actually copyrighted and require a license if you want to do some

Re: zip codes

2009-08-17 Thread Sjoerd Mullender
used for basic user-registration, I'm assuming functionality of >> this sort must be available for Python. Any suggestions will be much >> appreciated. >> > There might be an associated can of worms here, for example in the > Netherlands zip codes are actually copyrig

Re: zip codes

2009-08-17 Thread Martin P. Hellwig
ty of this sort must be available for Python. Any suggestions will be much appreciated. There might be an associated can of worms here, for example in the Netherlands zip codes are actually copyrighted and require a license if you want to do something with them, on the other hand you get

zip codes

2009-08-17 Thread Shailen
Is there any Python module that helps with US and foreign zip-code lookups? I'm thinking of something that provides basic mappings of zip to cities, city to zips, etc. Since this kind of information is so often used for basic user-registration, I'm assuming functionality of this sort must be availa

Re: zip codes

2009-08-17 Thread Aahz
In article <[email protected]>, Shailen wrote: > >Is there any Python module that helps with US and foreign zip-code >lookups? I'm thinking of something that provides basic mappings of zip >to cities, city to zips, etc. Since this kind of information

Re: zip codes

2009-08-16 Thread Grant Edwards
On 2009-08-16, Shailen wrote: > Thanks Martin and Aahz. Anyone know if zip code information is > copyrighted for the US? You can't copyright "information" as such. Only concrete expressions of information. A particular publication containing zip code information can be copyrighted. The underl

Re: zip codes

2009-08-16 Thread Paul Rubin
> It was a long time ago, I don't remember specifics, and the contents > are surely out of date by now, but I extracted a bunch of the TIGER > geographic coordinates for zip codes here: > > http://www.nightsong.com/phr/chess/zipcodes.zip That file may have actually com

Re: zip codes

2009-08-16 Thread Paul Rubin
Shailen writes: > Thanks Martin and Aahz. Anyone know if zip code information is > copyrighted for the US? Anyone can look up zip codes on usps.gov (and > other locations),so the information is readily available. I need zip > codes for a handful of cities and could map those myself

Re: zip codes

2009-08-16 Thread Shailen
Thanks Martin and Aahz. Anyone know if zip code information is copyrighted for the US? Anyone can look up zip codes on usps.gov (and other locations),so the information is readily available. I need zip codes for a handful of cities and could map those myself (or write a script to scrape them for

Re: Trying to find zip codes/rest example

2007-08-04 Thread Van Lindberg
Jay Loden wrote: > I don't remember the demo, but a little creative googling turned up > > http://bitworking.org/news/132/REST-Tips-URI-space-is-infinite > > Which matches the description above perfectly, so I assume it's what you were > after :-) That is exactly what I was trying to find! I bow

Re: Trying to find zip codes/rest example

2007-08-03 Thread Jay Loden
VanL wrote: > Hello, > > A couple months ago there was an example posted in a blog of a rest > interface for validating zip codes. If I recall correctly, the backend > validator was written in python. > > The validator demo page had a single text input; next to the text

Re: Trying to find zip codes/rest example

2007-08-03 Thread VanL
Terry Reedy wrote: > No, but does the localflavor entry on > http://code.djangoproject.com/browser/django/trunk/docs/add_ons.txt?rev=5118 > help? (found with Google) Thanks, but no. A friend asked for advice about implementing a password-checking interface; I remembered that the method describe

Re: Trying to find zip codes/rest example

2007-08-03 Thread Terry Reedy
"VanL" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | | I now cannot find this demo and the associated discussion. Does anybody | remember this demo and where I might be able to find it? No, but does the localflavor entry on http://code.djangoproject.com/browser/django/trunk/docs

Trying to find zip codes/rest example

2007-08-03 Thread VanL
Hello, A couple months ago there was an example posted in a blog of a rest interface for validating zip codes. If I recall correctly, the backend validator was written in python. The validator demo page had a single text input; next to the text input would appear either a green check or a