November 2017
Beginner to intermediate
204 pages
5h 23m
English
In the following continuation of extract_street_names.py, I've opened scf_address_data.csv and added a loop to iterate over the rows in the file. Within the loop, each of the addresses are extracted and searched to see if they match the pattern.
The script keeps a running count of the total number of matches. At the end of the script, the fraction of address strings that match the pattern is printed to the output.
....## compile the patternstreet_address_regex = re.compile(street_address_pattern_string) ...
Read now
Unlock full access