regex
workflow¶%reload_ext autoreload
%autoreload 2
%matplotlib inline
import pandas as pd
import re
* regex workflow
* svd
* transfer learning.
Jeremy mentions that he uses regex
every day in his work, and that it is essential for machine learning practitioners to develop a working knowledge of regex
. Since we've already done deep dives into svd
and into transfer learning
, we'll focus on the regex
part of this video, from 1:50 to 21:29
.
regex
exercise¶regex
and familiarize us with the way he works, Jeremy poses the following problem: (ddd) ddd dddd
. He shows how to use vim
to accomplish this task.Let's listen to Jeremy for the next 20 minutes or so:
from IPython.display import HTML
# Play youtube video
HTML('<iframe width="560" height="315" src="https://www.youtube.com/embed/5gCQvuznKn0?start=110" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>')
What is the greatest difference between people who succeed and people who do not? It's entirely about tenacity. If you are willing to focus on the task and keep trying you have a good chance of succeeding.
Work in an interactive environment, such as vim
, or jupyter notebook
, so you can try things get immediate feedback, revise, and progress toward a solution.
When your code fails, remember that the computer is doing exactly what you asked. A good general approach is to break the code up into smaller parts, then run it again, and find out which part doesn't work.
It's never "I think the problem in the code is X". A better approach is to start with the working assumption "I am an idiot, and I don't understand why things aren't working". Be willing to start from scratch and check every little step.
jupyter notebook
as our interactive environment.¶path = 'C:/Users/cross-entropy/.fastai/data/Austin_Public_Health_Locations'
From the Phone Number
column, we see that the phone numbers are in the format ddd-ddd-dddd
.
df = pd.read_csv(path+'/Austin_Public_Health_Locations.csv')
display(df)
Facility Name | Street Address | Zip Code | Hours | Website | Phone Number | Other Phone | Building ID | Ownership Status | Owner | Occupying Division | Occupancy Type | Sq. Ft. | Year Built | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | Bastrop WIC Clinic | 443 Texas Highway 71\nBastrop, Texas 78602\n(3... | 78602 | Monday 7:30am to 7pm, closed 12 noon to 1pm; T... | NaN | 512-972-4942 | NaN | BAS | Lease | The Marketplace at Bastrop | Community Services | Clinic | 1400.0 | NaN |
1 | Vital Records | 7201 Levander Loop, Building C\nAustin, Texas\... | 78702 | Monday to Friday, 8am to 4:30pm | https://austintexas.gov/birthcertificates | 512-972-4784 | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
2 | Manor WIC Clinic | 600 West Carrie\nManor, Texas 78653\n(30.34016... | 78653 | Thursday 9am to 2:30pm, closed 12 noon to 12:30pm | http://www.austintexas.gov/department/manor-wi... | 512-972-4942 | NaN | MAN | NaN | Travis County | Community Services | Clinic | 1700.0 | NaN |
3 | St. Johns WIC Clinic | 7500 Blessing Avenue\nAustin, Texas 78752\n(30... | 78752 | Monday and Tuesday 7:30 a.m. to 7 p.m., closed... | http://www.austintexas.gov/department/st-johns... | 512-972-4942 | NaN | SJC | Lease | Austin Independent School Center | Community Services | Clinic, Neighborhood Center | 9559.0 | 2001.0 |
4 | Betty Dunkerley Health Campus Building B | 7201 Levander Loop\nAustin, Texas 78702\n(30.2... | 78702 | Sunday - Saturday 7:00am to 7:00pm | NaN | 512-972-5010 | NaN | BDCB | Own | City of Austin | Epidemiology and Public Health Preparedness, O... | Offices | 2190.0 | NaN |
5 | Northwest WIC Clinic | 8701 Research Blvd, Suite A\nAustin, Texas 787... | 78758 | Monday and Tuesday 7:30am to 7:00pm, closed 12... | http://www.austintexas.gov/department/northwes... | 512-972-4942 | NaN | NWW | Lease | Van Family Real Estate Partnership, Ltd | Community Services | Clinic | 4200.0 | 1993.0 |
6 | Rutherford Campus | 1520 Rutherford Lane, Bldg 1\nAustin, Texas 78... | 78754 | Monday and Wednesday 7:45am to 11:30am; Tuesda... | https://austintexas.gov/department/environment... | 512-978-0300 | NaN | RLC | Own | City of Austin | Environmental Health Services | Offices | 2500.0 | NaN |
7 | Montopolis Recreation Community Center | 1200 Montopolis Dr.\nAustin, Texas 78741\n(30.... | 78741 | Monday - Thursday: 11 AM - 9 PM, Friday 11 AM ... | NaN | 12-978-2300 | NaN | MRCC | Own | City of Austin | Community Services | Offices | NaN | NaN |
8 | Blackland Neighborhood Center | 2005 Salina St\nAustin, Texas 78722\n(30.28075... | 78722 | Monday to Thursday 8am to 6pm; Friday 8am to 1... | NaN | 512-972-5790 | NaN | BNC | Own | City of Austin | Community Services | Neighborhood Center, Offices | 347.0 | 1984.0 |
9 | Dove Springs WIC Center | 6801 South IH-35, Suite I & J\nAustin, Texas 7... | 78744 | Monday and Tuesday 7:30am to 7:00pm, closed 12... | http://www.austintexas.gov/department/dove-spr... | 512-972-4942 | NaN | DOV | Lease | LX-Northbluff Center, L.P. | Community Services | Clinic | 2100.0 | NaN |
10 | First Workers Day Labor Center | 4916 N IH 35\nAustin, Texas 78751\n(30.308436,... | 78751 | NaN | http://www.austintexas.gov/online-form/first-w... | 512-972-4100 | NaN | NaN | Lease | Najib Webbe | Community Services | Service Center | 5315.0 | NaN |
11 | South Austin Neighborhood Center | 2508 Durwood St.\nAustin, Texas 78704\n(30.239... | 78704 | Monday to Thursday 8 a.m. to 6 p.m.; Friday 8 ... | http://www.austintexas.gov/department/south-au... | 512-972-6840 | NaN | SAN | Own | City of Austin | Community Services | Clinic, Neighborhood Services | 18651.0 | 1980.0 |
12 | Far South WIC Clinic | 405 W. Stassney Lane\nAustin, Texas 78745\n(30... | 78745 | Monday and Tuesday 7:30am to 7:00pm, closed 12... | http://www.austintexas.gov/department/far-sout... | 512-972-4942 | NaN | FSH | Own | City of Austin | Comunity Services, Disease Prevention and Heal... | Clinic | 4750.0 | 1982.0 |
13 | Montopolis WIC Clinic | 2901 Montopolis Drive\nAustin, Texas 78741\n(3... | 78741 | Monday and Tuesday 8am to 7pm, closed 12 noon ... | http://www.austintexas.gov/department/montopol... | 512-972-4942 | NaN | MON | Lease | Central | Community Services | Clinic | 1993.0 | 2015.0 |
14 | Clarksville Community Health Center | 1000 Toyath Street\nAustin, Texas 78703\n(30.2... | 78703 | Monday to Friday, 8am - 4:30pm | http://www.austintexas.gov/department/clarksvi... | NaN | NaN | CNC | Own | City of Austin | Disease Prevnetion and Health Promotion | Clinic, Offices | 3500.0 | NaN |
15 | RBJ Health Center | 15 Waller Street\nAustin, Texas 78702\n(30.252... | 78702 | Monday to Friday 8am to 5pm | http://www.austintexas.gov/department/rbj-heal... | 512-972-5400 | NaN | RBJ | Own | City of Austin | Administrative Support Services, Disease Prevn... | Clinic, Offices | 50809.0 | 1968.0 |
16 | South Austin WIC Clinic | 2508 Durwood St.\nAustin, Texas 78704\n(30.239... | 78704 | Monday and Tuesday 7:30am to 7:00 p.m., closed... | http://www.austintexas.gov/department/south-au... | 512-972-4942 | NaN | SAN | Own | City of Austin | Community Services | Clinic, Neighborhood Center | 18651.0 | 1980.0 |
17 | Betty Dunkerley Campus, Building E | 7201 Levander Loop, Building E\nAustin, Texas ... | 78702 | NaN | NaN | 512-972-5000 | NaN | BDCE | Own | City of Austin | Administrative Support Services, Health Equity... | Offices | 12403.0 | NaN |
18 | Montopolis Neighborhood Center | 1416 Montopolis Drive\nAustin, Texas 78741\n(3... | 78741 | Tuesday 8am to noon and 1pm to 5pm | http://www.austintexas.gov/department/montopol... | 512-962-6650 | NaN | MNC | Own | City of Austin | Community Services | Neighborhood Center | 2840.0 | 1976.0 |
19 | East Austin WIC Clinic | 211 Comal St.\nAustin, Texas 78702\n(30.259745... | 78702 | Monday to Thursday 8am to 6pm; closed 12noon t... | http://www.austintexas.gov/department/east-aus... | 512-972-4942 | NaN | EAN | Own | City of Austin | Community Services | Clinic, Neighborhood Center | 4304.0 | 1981.0 |
20 | Del Valle WIC Clinic | 3518 FM 973\nDel Valle, Texas 78617\n(30.19879... | 78617 | Monday 8am to 7pm; closed 12 noon to 12:30pm; ... | http://www.austintexas.gov/department/del-vall... | 512-972-4942 | NaN | DEL | NaN | Travis County | Community Services | Clinic | 1000.0 | NaN |
21 | Rosewood-Zaragosa Neighborhood Center | 2800 Webberville Road\nAustin, Texas 78702\n(3... | 78702 | Monday to Friday 8am to 6pm; Fridays 8am to noon | http://www.austintexas.gov/department/rosewood... | 512-972-6740 | NaN | RZN | Own | City of Austin | Community Services | Clinic, Neighborhood Center | 17128.0 | 1974.0 |
22 | Pflugerville WIC Clinic | 15822 Foothill Farms Loop\nPflugerville, Texas... | 78660 | Monday and Tuesday 7:30am to 7:00pm, closed 12... | http://www.austintexas.gov/department/pflugerv... | 512-972-4942 | NaN | PFL | NaN | Travis County | Community Services | Clinic | 2000.0 | NaN |
23 | Betty Dunkerley Health Campus, Building C | 7201 Levander Loop, Bulding C\nAustin, Texas 7... | 78702 | NaN | NaN | 512-972-5000 | NaN | BDCC | Own | City of Austin | Community Services, Epidemiology, Public Healt... | Offices | 7448.0 | NaN |
24 | Mom's Place - WIC Breastfeeding Resource Center | 8701 Research Blvd., Suite B\nAustin, Texas 78... | 78758 | Monday, Wednesday, and Thursday 8am to 5pm, c... | http://www.austintexas.gov/department/moms-pla... | 512-719-3010 | 1-800-514-6667 | MOM | Lease | Van Family Real Estate Partnership, Ltd | Community Services | Clinic | 2080.0 | 1993.0 |
25 | AK Black Health Center | 928 Blackson Avenue\nAustin, Texas 78752\n(30.... | 78752 | NaN | NaN | 512-978-9740 | NaN | AKB | Own | City of Austin | Community Services, Health Equity and Communit... | Clinic | 4200.0 | NaN |
26 | St. John Community Center | 7500 Blessing Avenue\nAustin, Texas 78752\n(30... | 78752 | Monday to Thursday 8 a.m. â 6 p.m.; Friday 8... | http://www.austintexas.gov/department/st-johns... | 512-972-5139 | NaN | SJC | Lease | Austin Independent School District | Community Services | Clinic, Neighborhood Center | 9559.0 | 2001.0 |
27 | Elgin WIC Clinic | 218 South Main Street\nElgin, Texas 78621\n(30... | 78621 | Tuesdays 8:00am to 5:00pm, closed 12 noon to 1... | http://www.austintexas.gov/department/elgin-wi... | 512-972-4942 | NaN | ELG | NaN | Travis County | Community Services | Clinic | 1500.0 | NaN |
28 | Betty Dunkerley Campus Building H, Administrat... | 7201 Levander Loop, Building H\nAustin, Texas ... | 78702 | NaN | NaN | NaN | NaN | BDCH | Own | City of Austin | Administrative Support Services, Community Ser... | Offices | 10016.0 | NaN |
29 | Rosewood-Zaragosa WIC Clinic | 2800 Webberville Road\nAustin, Texas 78702\n(3... | 78702 | Monday and Tuesday 7:30am to 7:00pm, closed 12... | http://www.austintexas.gov/department/rosewood... | 512-972-4942 | NaN | RZN | Own | City of Austin | Community Services | Clinic, Neighborhood Center | 17128.0 | 1974.0 |
30 | East Austin Neighborhood Center | 211 Comal St\nAustin, Texas 78702\n(30.259718,... | 78702 | Monday toThursday 8am to 6pm; Friday 8am to noon | http://www.austintexas.gov/department/east-aus... | 512-972-6650 | NaN | EAN | Own | City of Austin | Community Services | Clinic, Neighborhood Center | 4304.0 | 1981.0 |
31 | Oak Hill WIC Clinic | 8656 Hwy. 71 W, Building A Ste B\nAustin, Texa... | 78735 | Monday 8am to 5pm, closed 12 noon to 12:30pm | http://www.austintexas.gov/department/oak-hill... | 512-972-4942 | NaN | OAK | NaN | Travis County | Community Services | Clinic | 1200.0 | NaN |
This will be our starting point.
with open(path+'/Austin_Public_Health_Locations.csv', 'r') as file:
data = file.read().replace('\n', '')
print(data)
Facility Name,Street Address,Zip Code,Hours,Website,Phone Number,Other Phone,Building ID,Ownership Status,Owner,Occupying Division,Occupancy Type,Sq. Ft. ,Year Built Bastrop WIC Clinic,"443 Texas Highway 71Bastrop, Texas 78602(30.10646853400044, -97.33211573399967)",78602,"Monday 7:30am to 7pm, closed 12 noon to 1pm; Tuesday and Friday closed; Wednesday and Thursday 7:30 am to 4:30 pm, closed 12 noon to 12:30 pm (closed second Wednesday of each month); Second Saturday of each month 8am to 12 noon",,512-972-4942,,BAS,Lease,The Marketplace at Bastrop,Community Services ,Clinic,1400,N/AVital Records,"7201 Levander Loop, Building CAustin, Texas(30.252329, -97.690404)",78702,"Monday to Friday, 8am to 4:30pm",https://austintexas.gov/birthcertificates,512-972-4784,,,,,,,,Manor WIC Clinic,"600 West CarrieManor, Texas 78653(30.340164, -97.563744)",78653,"Thursday 9am to 2:30pm, closed 12 noon to 12:30pm",http://www.austintexas.gov/department/manor-wic-clinic,512-972-4942,,MAN,N/A,Travis County ,Community Services ,Clinic,1700,N/ASt. Johns WIC Clinic,"7500 Blessing AvenueAustin, Texas 78752(30.332635, -97.69335)",78752,"Monday and Tuesday 7:30 a.m. to 7 p.m., closed noon to 1 p.m.; Wednesday and Thursdays 7:30 a.m. to 4:30 p.m., closed noon to 12:30 p.m. (Closed second Wednesday of each month); Fridays 7:30am to noon; Second Saturday of each month 8 a.m. to noon",http://www.austintexas.gov/department/st-johns-wic-clinic,512-972-4942,,SJC,Lease,Austin Independent School Center ,Community Services ,"Clinic, Neighborhood Center ",9559,2001Betty Dunkerley Health Campus Building B,"7201 Levander LoopAustin, Texas 78702(30.251305664000483, -97.69174879199966)",78702,Sunday - Saturday 7:00am to 7:00pm,,512-972-5010,,BDCB,Own,City of Austin,"Epidemiology and Public Health Preparedness, Office of the Director",Offices ,2190,N/ANorthwest WIC Clinic,"8701 Research Blvd, Suite AAustin, Texas 78758(30.365149, -97.716958)",78758,"Monday and Tuesday 7:30am to 7:00pm, closed 12 noon to 1:00pm; Wednesday and Thursday 7:30am to 7:00pm, closed 12 noon to 12:30pm (Closed second Wednesday of each month); Fridays 7:30am to 12 noon; Second Saturday of each month 8:00am to 12 noon",http://www.austintexas.gov/department/northwest-wic-clinic,512-972-4942,,NWW,Lease,"Van Family Real Estate Partnership, Ltd",Community Services ,Clinic,4200,1993Rutherford Campus,"1520 Rutherford Lane, Bldg 1Austin, Texas 78754(30.337078, -97.68114)",78754,"Monday and Wednesday 7:45am to 11:30am; Tuesday, Thursday, and Friday 7:45am to 4:30 pm",https://austintexas.gov/department/environmental-health-services,512-978-0300,,RLC,Own,City of Austin,Environmental Health Services ,Offices ,2500,N/AMontopolis Recreation Community Center ,"1200 Montopolis Dr.Austin, Texas 78741(30.232386, -97.699893)",78741,"Monday - Thursday: 11 AM - 9 PM, Friday 11 AM - 6 PM, Saturday 10 AM - 4 PM, Sunday: Closed ",,12-978-2300,,MRCC ,Own ,City of Austin ,Community Services ,Offices ,,N/ABlackland Neighborhood Center,"2005 Salina StAustin, Texas 78722(30.280750365000472, -97.72245940699969)",78722,Monday to Thursday 8am to 6pm; Friday 8am to 12noon,,512-972-5790,,BNC,Own,City of Austin,Community Services,"Neighborhood Center, Offices ",347,1984Dove Springs WIC Center,"6801 South IH-35, Suite I & JAustin, Texas 78744(30.187722, -97.770861)",78744,"Monday and Tuesday 7:30am to 7:00pm, closed 12 noon to 1:00pm; Wednesday and Thursday 7:30am to 4:30pm, closed 12 noon to 12:30pm; Closed second Wednesday of each month; Friday 7:30am to 12 noon; Second Saturday of each month 8:00am to 12 noon",http://www.austintexas.gov/department/dove-springs-wic-center,512-972-4942,,DOV,Lease,"LX-Northbluff Center, L.P.",Community Services ,Clinic,2100,N/AFirst Workers Day Labor Center ,"4916 N IH 35Austin, Texas 78751(30.308436, -97.711863)",78751,,http://www.austintexas.gov/online-form/first-workers-day-labor-job-request,512-972-4100,,,Lease,Najib Webbe ,Community Services ,Service Center ,5315,N/ASouth Austin Neighborhood Center,"2508 Durwood St.Austin, Texas 78704(30.239254, -97.760064)",78704,Monday to Thursday 8 a.m. to 6 p.m.; Friday 8 a.m. to noon,http://www.austintexas.gov/department/south-austin-neighborhood-center,512-972-6840,,SAN ,Own,City of Austin,Community Services ,"Clinic, Neighborhood Services ",18651,1980Far South WIC Clinic,"405 W. Stassney LaneAustin, Texas 78745(30.20701, -97.779239)",78745,"Monday and Tuesday 7:30am to 7:00pm, closed 12 noon to 1:00pm; Wednesday and Thursday 7:30am to 4:30pm, closed 12 noon to 12:30pm (Closed second Wednesday of each month); Fridays 7:30am to 12 noon; Second Saturday of each month 8:00am to 12 noon",http://www.austintexas.gov/department/far-south-wic-clinic,512-972-4942,,FSH,Own,City of Austin,"Comunity Services, Disease Prevention and Health Promotion",Clinic,4750,1982Montopolis WIC Clinic,"2901 Montopolis DriveAustin, Texas 78741(30.214991, -97.708833)",78741,"Monday and Tuesday 8am to 7pm, closed 12 noon to 1:00pm; Wednesday and Thursday 8am to 4:30pm, closed 12 noon to 12:30pm; Closed second Wednesday of each month; Friday 8am to 12 noon; Second Saturday of each month 8:00am to 12 noon",http://www.austintexas.gov/department/montopolis-wic-clinic,512-972-4942,,MON,Lease,Central ,Community Services,Clinic,1993,2015Clarksville Community Health Center,"1000 Toyath StreetAustin, Texas 78703(30.28122053000044, -97.76330054699969)",78703,"Monday to Friday, 8am - 4:30pm",http://www.austintexas.gov/department/clarksville-community-health-center,,,CNC,Own,City of Austin,Disease Prevnetion and Health Promotion,"Clinic, Offices ",3500,N/ARBJ Health Center ,"15 Waller StreetAustin, Texas 78702(30.25231, -97.733446)",78702,Monday to Friday 8am to 5pm,http://www.austintexas.gov/department/rbj-health-center,512-972-5400,,RBJ,Own,City of Austin,"Administrative Support Services, Disease Prevnetion and Health Promotion, Epidemiology, Public Health Preparedness","Clinic, Offices ",50809,1968South Austin WIC Clinic,"2508 Durwood St.Austin, Texas 78704(30.239252, -97.760073)",78704,"Monday and Tuesday 7:30am to 7:00 p.m., closed noon to 1:00 p.m.; Wednesday and Thursday 7:30am to 4:30 pm, closed noon to 12:30 p.m.; (Closed second Wednesday of each month); Friday 7:30am to noon; Second Saturday of each month 8:00am to noon",http://www.austintexas.gov/department/south-austin-wic-clinic,512-972-4942,,SAN ,Own,City of Austin ,Community Services ,"Clinic, Neighborhood Center ",18651,1980"Betty Dunkerley Campus, Building E ","7201 Levander Loop, Building EAustin, Texas 78702(30.252944, -97.690225)",78702,,,512-972-5000,,BDCE,Own ,City of Austin ,"Administrative Support Services, Health Equity and Community Engagement, Office of the Director ",Offices ,12403,N/AMontopolis Neighborhood Center,"1416 Montopolis DriveAustin, Texas 78741(30.229149, -97.701342)",78741,Tuesday 8am to noon and 1pm to 5pm,http://www.austintexas.gov/department/montopolis-neighborhood-center,512-962-6650,,MNC,Own,City of Austin,Community Services ,Neighborhood Center ,2840,1976East Austin WIC Clinic,"211 Comal St.Austin, Texas 78702(30.259745, -97.727356)",78702,Monday to Thursday 8am to 6pm; closed 12noon to 1pm; Friday 8am to 12noon,http://www.austintexas.gov/department/east-austin-wic-clinic,512-972-4942,,EAN,Own,City of Austin,Community Services ,"Clinic, Neighborhood Center ",4304,1981Del Valle WIC Clinic,"3518 FM 973Del Valle, Texas 78617(30.198796, -97.642069)",78617,"Monday 8am to 7pm; closed 12 noon to 12:30pm; First and third Thursday of each month 8am to 4:30 pm, closed 12 noon to 12:30pm",http://www.austintexas.gov/department/del-valle-wic-clinic,512-972-4942,,DEL,N/A,Travis County ,Community Services ,Clinic ,1000,N/ARosewood-Zaragosa Neighborhood Center,"2800 Webberville RoadAustin, Texas 78702(30.265355, -97.710555)",78702,Monday to Friday 8am to 6pm; Fridays 8am to noon,http://www.austintexas.gov/department/rosewood-zaragosa-neighborhood-center,512-972-6740,,RZN,Own,City of Austin,Community Services ,"Clinic, Neighborhood Center ",17128,1974Pflugerville WIC Clinic,"15822 Foothill Farms LoopPflugerville, Texas 78660(30.449001, -97.65186)",78660,"Monday and Tuesday 7:30am to 7:00pm, closed 12 noon to 1:00pm; Wednesday and Thursday 7:30am to 4:30pm, closed 12 noon to 12:30pm (Closed second Wednesday of each month); Friday 7:30am to 12 noon; Second Saturday of each month 8:00am to 12 noon",http://www.austintexas.gov/department/pflugerville-wic-clinic,512-972-4942,,PFL,N/A,Travis County ,Community Services ,Clinic,2000,N/A"Betty Dunkerley Health Campus, Building C","7201 Levander Loop, Bulding CAustin, Texas 78702(30.251614, -97.690013)",78702,,,512-972-5000,,BDCC,Own ,City of Austin ,"Community Services, Epidemiology, Public Health Preparedness ",Offices,7448,N/AMom's Place - WIC Breastfeeding Resource Center,"8701 Research Blvd., Suite BAustin, Texas 78758(30.364895, -97.71704)",78758,"Monday, Wednesday, and Thursday 8am to 5pm, closed 12:15pm to 12:45pm (Closed 2nd Wednesday of each month); Tuesday 8am to 6pm, closed 12:15pm to 12:45pm; Friday 8am to 2pm",http://www.austintexas.gov/department/moms-place-wic-breastfeeding-resource-center,512-719-3010,1-800-514-6667,MOM,Lease,"Van Family Real Estate Partnership, Ltd",Community Services ,Clinic,2080,1993AK Black Health Center ,"928 Blackson AvenueAustin, Texas 78752(30.333683, -97.698535)",78752,,,512-978-9740,,AKB,Own,City of Austin ,"Community Services, Health Equity and Community Engagement",Clinic,4200,N/ASt. John Community Center,"7500 Blessing AvenueAustin, Texas 78752(30.332632, -97.693348)",78752,Monday to Thursday 8 a.m. – 6 p.m.; Friday 8 a.m. to noon,http://www.austintexas.gov/department/st-johns-community-center,512-972-5139,,SJC,Lease,Austin Independent School District ,Community Services ,"Clinic, Neighborhood Center ",9559,2001Elgin WIC Clinic,"218 South Main StreetElgin, Texas 78621(30.345313, -97.369808)",78621,"Tuesdays 8:00am to 5:00pm, closed 12 noon to 12:30pm; Fridays 8:00am to 12:00pm",http://www.austintexas.gov/department/elgin-wic-clinic,512-972-4942,,ELG,N/A,Travis County ,Community Services ,Clinic,1500,N/A"Betty Dunkerley Campus Building H, Administrative Services ","7201 Levander Loop, Building HAustin, Texas 78702(30.253738, -97.689104)",78702,,,,,BDCH,Own ,City of Austin,"Administrative Support Services, Community Services, Health Equity and Community Engagement ",Offices ,10016,N/ARosewood-Zaragosa WIC Clinic,"2800 Webberville RoadAustin, Texas 78702(30.265487, -97.71038)",78702,"Monday and Tuesday 7:30am to 7:00pm, closed 12 noon to 1:00p.m.; Wednesday and Thursday 7:30am to 4:30 pm, closed 12:00 noon to 12:30pm (Closed second Wednesday of each month); Friday 7:30am to 12:00 noon; Second Saturday of each month 8:00am to 12:00 noon",http://www.austintexas.gov/department/rosewood-zaragosa-wic-clinic,512-972-4942,,RZN,Own,City of Austin,Community Services ,"Clinic, Neighborhood Center ",17128,1974East Austin Neighborhood Center,"211 Comal StAustin, Texas 78702(30.259718, -97.727464)",78702,Monday toThursday 8am to 6pm; Friday 8am to noon,http://www.austintexas.gov/department/east-austin-neighborhood-center,512-972-6650,,EAN,Own,City of Austin,Community Services ,"Clinic, Neighborhood Center ",4304,1981Oak Hill WIC Clinic,"8656 Hwy. 71 W, Building A Ste BAustin, Texas 78735(30.251475, -97.893723)",78735,"Monday 8am to 5pm, closed 12 noon to 12:30pm",http://www.austintexas.gov/department/oak-hill-wic-clinic,512-972-4942,,OAK,N/A,Travis County ,Community Services ,Clinic,1200,N/A
re_extract_phone_number = re.compile(r"(\d\d\d)-(\d+)-(\d+)")
phone_number_list = re_extract_phone_number.findall(data)
display(phone_number_list)
[('512', '972', '4942'), ('512', '972', '4784'), ('512', '972', '4942'), ('512', '972', '4942'), ('512', '972', '5010'), ('512', '972', '4942'), ('512', '978', '0300'), ('512', '972', '5790'), ('512', '972', '4942'), ('512', '972', '4100'), ('512', '972', '6840'), ('512', '972', '4942'), ('512', '972', '4942'), ('512', '972', '5400'), ('512', '972', '4942'), ('512', '972', '5000'), ('512', '962', '6650'), ('512', '972', '4942'), ('512', '972', '4942'), ('512', '972', '6740'), ('512', '972', '4942'), ('512', '972', '5000'), ('512', '719', '3010'), ('800', '514', '6667'), ('512', '978', '9740'), ('512', '972', '5139'), ('512', '972', '4942'), ('512', '972', '4942'), ('512', '972', '6650'), ('512', '972', '4942')]
[' '.join(tuple) for tuple in phone_number_list]
['512 972 4942', '512 972 4784', '512 972 4942', '512 972 4942', '512 972 5010', '512 972 4942', '512 978 0300', '512 972 5790', '512 972 4942', '512 972 4100', '512 972 6840', '512 972 4942', '512 972 4942', '512 972 5400', '512 972 4942', '512 972 5000', '512 962 6650', '512 972 4942', '512 972 4942', '512 972 6740', '512 972 4942', '512 972 5000', '512 719 3010', '800 514 6667', '512 978 9740', '512 972 5139', '512 972 4942', '512 972 4942', '512 972 6650', '512 972 4942']