9
C Umted States enSUS Q_ Sea rch --- eurHu BROWSE BY TOPIC EXPLORE DATA LIBRARY SURVEYS/ PROGRAMS INFORMATI ON FOR... AND A CODE ABOUT US fl Census.gov > Oat a > Developers Developers About this Section API Foru m App Gall ery Available APls Geography Guidance for Developers News Terms of Service Updates < Back to Data The Census Bureau ha s begun rolling out our da tasets via AP! s. Check o ut our Di scove1 -y Tool. Sign up for o ur newsletter to get the latest updates and newest dataset addition. We al so invite you to make requests fo r features / data via our forum . Read More NEWS CITY SDK ==- - ~l,.,lh Developers' Forum Join the Ma ili ng List Javascri t SDK C Umted Stat es enSUS 0_ Sea rch --- eure, u t,!:!fu@ 2D1 5 Nat! onal Day of Civic ' . 4' ' . . . ... .. ; ; ., ' . ' - - '' ..., ~ BROWSE BY TOPIC EXPLORE DATA LIBRARY SURVEYS/ PROGRAMS INFORMATI ON FOIL FIND A CODE ABOUT US fl Census.gov > Oat a > Developers Developers About this Section API Foru m App Gallery Availa bl e APls Geography Guidance for Developers News Terms of Service Updates < Ba ck to Data The Census Bur eau h as be gu n rolling out our datasets via AP! s. Ch eck o ut our Di scove ry Tool. Sign up for our newsletter to get the lates t updates and ne wes t d ataset ad dition. We also invite you to make requ es ts fo r feat ures / data via our forum. Read More Developer s' Forum NEWS - =~ -- '" •1 .. ,m Join the Ma ili ng List CITY SDK di I ~ !.iil IIJ,,! Javascri t S DK ' ! !:,fu;; 2D15 Nat! onal Day of Civic f l ~- '# . . . ' _, . ' ' pc;" Instruction for Downloading Data from the Census Data API: 2018 American Community Survey 1-Year Data Profiles for All Congressional Districts in the U.S. for the 116 th Congress Follow these steps for building an API call (or a URL) for pulling data from the 2018 American Community Survey 1-Year Data Profiles for All Congressional Districts in the U.S. for the 116 th Congress. Step 1: Using Firefox or Chrome web browser, go to the census.gov Developers Page at: https://www.census.gov/developers/. STEP 1 Step 2. On the left side of the screen, click on “Available APIs”. STEP 2 1

How to Download All Congressional Districts from the Census API · 2019. 12. 11. · th CUmted States enSUS Q_ Search ---eurHu BROWSE BY TOPIC EXPLORE DATA LIBRARY SURVEYS/ PROGRAMS

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

  • CUmted States enSUS Q_ Search ---eurHu

    BROWSE BY TOPIC EXPLORE DATA LIBRARY SURVEYS/ PROGRAMS INFORMATION FOR... AND A CODE ABOUT US

    fl Census.gov > Oata > Developers

    Developers About this Section

    API Forum

    App Gallery

    Available APls

    Geography

    Guidance for Developers

    News

    Terms of Service

    Updates

    < Back to Data

    The Census Bureau has begu n rolling out our datasets via AP!s. Check out our Discove1-y Tool. Sign up for our newsletter to get the latest updates and newest dataset addition. We also invite you to make requests for features / data via our forum.

    Read More

    NEWS CITY SDK •==-- ~l,.,lh

    Developers' Forum Join the Mailing List Javascri t SDK

    C Umted States enSUS 0_ Search ---eure,u

    t,!:!fu@ 2D1 5 Nat!onal Day of Civic

    ' .4' ' . . .... .. ; ; ., ' . ~ ' - -' ' ...,~

    BROWSE BY TOPIC EXPLORE DATA LIBRARY SURVEYS/ PROGRAMS INFORMATION FOIL FIND A CODE ABOUT US

    fl Census.gov > Oata > Developers

    Developers About this Section

    API Forum

    App Gallery

    Available APls

    Geography

    Guidance for Developers

    News

    Terms of Service

    Updates

    < Back to Data

    The Census Bureau has begun rolling out our datasets via AP!s. Check out our Discovery Tool. Sign up for our newsletter to get the latest updates and newest dataset addi t ion. We also invite you to make requests for features / data via our forum.

    Read More

    Developers' Forum

    NEWS -=~--'" •1 .. ,m Join the Mailing List

    CITY SDK

    di I~ !.iil IIJ,,!

    Javascri t SDK

    '

    ! !:,fu;; 2D15 Nat!onal Day of Civic

    f l • ~ ~- '# . . . ' ~ _ , . '

    'pc;"

    Instruction for Downloading Data from the Census Data API:

    2018 American Community Survey 1-Year Data Profiles for All Congressional Districts in the U.S. for the

    116th Congress

    Follow these steps for building an API call (or a URL) for pulling data from the 2018 American Community Survey 1-Year

    Data Profiles for All Congressional Districts in the U.S. for the 116th Congress.

    Step 1: Using Firefox or Chrome web browser, go to the census.gov Developers Page at:

    https://www.census.gov/developers/.

    STEP 1

    Step 2. On the left side of the screen, click on “Available APIs”.

    STEP 2

    1

    https://www.census.gov/developers/http:census.gov

  • CUmtedStates n enS!!~ '-- Dali > Deffklpers > Anilible AP ls

    Developers About this Section

    API Forum

    App Gallery

    I Available APl s Geography

    Guidance for Developers

    News

    Terms of Service

    Updates

    < Back to Developers

    Request a

    Avai lable APls 'We plan on adding more of our publicly available datasets. Here you'll fi nd which of our many data sets are currently available via API. To make specific requests for the release of datasets, please sign up and submit your requesls on our Developer Forum.

    NEW: We now have a machine-readable dataset discovery service available in beta release. Visit our Discovery Tool page to learn more.

    Page lof2 >

    OCTOBER 17, 2019

    American Community Survey 1-Year Data (2011-2018) Areas with populations of 65,000+. Covers a broad range of tOplCS about social, economic, demographic, and housing characteristics of the US. population.

    OCTOBER 18, 2018

    American Community Survey 1-Year Supplemental Data (2014 - 2017) High-ff!vet detailed tables tabulated on the 1-year miaodata for geographies with populations of 20,000 or more

    get =NAME,group(S0IOl)&for=us:l&key= YOUR_ KEY _ GOES_ HERE

    • 2018 ACS Subject Tables Variables [ html I xml [json J

    ACS Technical Documentation

    Examples and Supported Geography

    Data Profi les

    • Example Call: api.census.gov/data/2018/acs/acsljprofile? get=group(DP02)&for=us:l&key= YOUR_ KEY _ GOES_ HERE

    • 2018 ACS Data Profi les Variables [ html I xml [json J

    • ACS Technical Documentation

    Examples and Supported Geography

    Comparison Profi le

    • Example Call: api.census.gov/data/2018/acs/acsl/cprofi le? get=group(CP0S)&for=us:l&key=YOUR_ KEY _ GOES_ HERE

    • 2018 ACS Comparison Profi le Variables [ html I xml I json J

    • ACS Technical Documentation

    • Examples and Supported Geography

    ,,

    Step 3: Click on American Community Survey 1-Year Data (2011-2018).

    STEP 3

    Step 4. Scroll down until you see “Data Profiles.” Under data profiles, you should see “Example Call”. Copy/paste the URL into Firefox or Chrome if you are not already using these web browsers.

    https://api.census.gov/data/2018/acs/acs1/profile?get=group(DP02)&for=us:1&key=YOUR_KEY_GOES_HERE

    We are going to use this URL to build an API call for table DP02 for all congressional districts.

    STEP 4

    2

    https://api.census.gov/data/2018/acs/acs1/profile?get=group(DP02)&for=us:1&key=YOUR_KEY_GOES_HERE

  • 0 api .census.gov/ data/2018/ae5/ae51 /profi 1J ?g et= NAM E,~rou p(D P02)&for=us: 1 &key= YO UR_KEY _ GO ES_H ERE

    0 api.census.gov/data/2018/acs/acs 1/profile?get= NAME.group(D Pozj&tor=congressiona1%20district:*3/key= YOU R_KEY _ GOES_H ERE

    0 api.census.gov/data/ 2018/ae5/ae51/profile?get=NAME,group(DP02)&for=congressional%20dist rict:*

    Cm.nu ,tPl: Datasm in ldara/2018/acJ/acsl and its descmda11ts

    "'" Amcrian lbeAmcn.,.1111 COllllllunirySurny (ACS) i1an~ IUl"\"C')'th.11 pro\"ida cbta C\"Cl)')-C. - ih"ll18mnm1ll.1itics ~~~? !:~=~~~f!::;::::::'"~=-u:;~~~,;:;::;~;::!~~ Year m tbcCcnn111 Bin....,•• Wcb1ilc • c na.ilabl,.~clyby ltjCJroUI!. ~ H111p1uicQl'liin. • id ~ - Sll.llluary &timatu: filct. S~CCI tablca._Data profl1n.a11d ~~~ profilnarca\'ailablc (ortbc wi1iou.1U_~ ilatn. tbc Di_stric1of Detailed Columbia.Puerto Rio:Mo lbw. oC\"ery«llllfe"IOO,.] dl.5tri~. oC\ery mttropolttanina. andal! COllilloCt: lllldplacft: 11,ith popula11011, o(6S.OOO or more Coml)IWI.IOU profiles •re 1unilar 10 data profil,cs bl• •Ito llliC!lldc co111p11110W 11,11h !"'It •)"~ data. The- tlWfeill )"C• dMa llrC «iinpar«I 11,)lh cad\ of the la5t four yun of data and 1ncllldc ,ta11111c:al l 1iJ.Wlcaucc IClhllj: TilaC 11tt O\Cf 1,000\-..ublcl u1du1dawci

    V\ Tbc-AmcnQn C01miunitySlll''\"CY (ACS)11anlJOlilOUllil. -. ·,:y tliai pro\"ida data n ·cryyc• - ~\"ll!i«iillil1111Urin lhc ClRTClll ntlonnatiou they Med to plan invubncotl and ICf\-ic:cs. 11w ACS co..-cn • broad r1Wj:c oftopi.a about a«lll. ec:onomic. dcmo;:rapluc. and IIOll&Wi chara

  • g . BooklExcel [!] - CJ X

    File Insert Page Layout Formulas Data Review View ACROBAT SAS Q Tell me what you want to do- JessK.a C Barnett (CENSUS/ADD? FED) A, Sh.are - ~Cut ™ = t!J L AutoSum • A p Cahbn · 11 • J( .. - fl-· Wraplext Genenal Oistr1ct 4 ( 116th Congress). Colorado","500\600US0804"',"305869","4052"',-:305869","-888888888"',"216631"."4221",'70.8"',"1.2"',"'95800"."3465","31.3"'." I. I"'," 173393","4 174"."56.7","1.2"."73761","3115"',"24 . 11

    10 ("Congressblal District I ( I 16th Congress). Florlda", "5001600US120 I" ,"295098", "4406". "295098", "-888888888" ," 195943". "4393" ,"66.4"." 1.2" ,"72032". J290" ,"24.4"." 1.0"." 146293". "5057". "49.6"," 1.5". "48685"."30 12"." 16.5",l 11 ("Coogressblal District 23 ( 116th Congress), Flor1da"."5001600US1223","274559"."5462","274559","·888888888","181267","4430","66.0","1.7"."73080"."3841"."26.6","1.5","133838","4419","48.7"," l.6"',"51257"."3570"." 18.7", 12 ("Congressk>nal District 6 ( I 16th Congress). Georgia" ,"500 l600US 1306", "287599"."5243"', "287599" ," -888888888" ," 192068", "4973", "66.8"'," 1.4"', "91465"', "3825", J 1.8"," 1.3"," 159853","4574"', "55.6"' ," 1.4"', '73499","3846", "25.6"',

    13 ("Congressk>nal District 9 ( 1161h Congress), Georgie","5001600US 1309"."281627","4678"."281627"."-888888888","202235","4827"."71 .8"."1.4\ "78336","35 15","27.8","l. 1"."159332","4234","56.6"," l.3"."57483"."3 128",-W.4".

    14 ("Congressblal District 17 ( 1161h Congress). llnois","5001600US 1717","2809 1r,"3947"."280917","-888888888"."169931"',"4425"',"60.5"',"l.4"',"68851"."3240"."24 .5"',"1. l"',"119100","4315"',"42.4","l.4","38046","2666"'."13.5"," 15 reongresslonal District 4 ( I 16th Congress). lndiana","500 1600US 1804"',"292 185","3460"."'292185","-888888888","195434","4148"',"66.9","1.3"',"80045"."3569","27.4"',"l. l"'," 148588","4682","50.9","l.5"'."56095","2786"'." 19.2".

    16 ("Coogressk>nal District I ( 116th Congress). Malne"."500 !600US230 l","295578","42lr,"295578"."-888888888"."176736","4457"."59.8"."1.4-."63882"."35 14","21.6","1. 1"."140946"."4090","47.r: 1.4•,-46657","2684"," 15.8","0 17 ("Congressk>nal District 2 ( I 16th Congress ). Maryland"."5001600US2402"."286945"."5407","286945","-888888888"." 185981"."5343","64.8"," 1.6"."76020","4558","26.5"," 1.5"." 125613"."4575"."43.8"."1.4","46108","352r," 16. 1 18 ("Congressk>nal District 7 ( I 16th Congress). Maryland", "5001600US2407"."270505", "5589" ."270505". "-888888888"," 160253" ,"4708","59.2": 1.4" ,"64466" ,"3546"."23.8" ," 1.2" ,"99499" ,"3679","36.8"," I .2"'."39 157" ."2707"." 14 .5",

    19 ("Coogressk>nal District 4 ( I 16th Congress), MasS&Chusetts"."5001600US2504"',"279926","5 118","279926","-888888888"," 193933"',"3952"."69.3"',"1.6"'."83201"."3721","29.7"."1.3"'."157762","4411","56.4","l.8","65807"."3222" 20 ("Congressk>nal District 8 ( 1161h Congress). Massachusens"."5001600US2508"', "301338" ."5581"."301338". "-888888888"." 17940 I " ,"5099"."59.5"." l.5"'."73487"."4037", "24.4" ," 1.3"." 135105" ,"4065" ,"44 .8" ... 1.3" ."54775" ,"29 12"'

    21 reongressk>nal District 6 ( I 16th Congress). Mlchlgan","500 1600US2606", "285178"."3922". "285178","-888888888"," 186497","4348", "65.4"'," 1.2". "74046"',"3100", "26.0"." 1.0"," 139771" ."3548''."49.0"," l.2"."49391" ."2630"," 17 .3"' 22 ("Congressklnal Olslrict 13 ( 1 161h Congress), Mk:hll)an". "5001600US2613"',"266256" ,"4421" ."266256". "-888888888"'," 146021" ,"4221"."54.8" ," 1.6"' ,"63859" ."3448"."24.0" ," 1.3","68996"' ,"2968"', "25.9"." I. l","25942"."2258"', "9. 7". 23 ("Congressional Ols1r1ct 2 ( 116th Congress). Mlssourr."500 1600US2902"' ,"30 1587". "4742" ,"30 I 58r. "-888888888" ."206 143" ."4826" ,"68.4"." 1.3". "8 1582" ,"3995" ,"27. I"." 1.3" ... 169732". "4543". "56.3"." 1.4". "64377". "3381" ."21.3" 24 ("Congresslonal Dlstr1ct 6 ( I 16th Congress). Mlssourf',"5001600US290fr."2900 10"."43 12"."290010","-888888888","192085","4626","66.2"," 1.3","82864","3871"."28.6"," l.3"," l52192"."4596","52.5","1.4","5

    .. ..., ~ ® • I!!] -

    Q+) · · BooklExcel [!] - X File Insert Page Layout Formulas Data ReY1ew View ACROBAT SAS Q Tell me wtlat you wanl lo do_ Jewca C Bametl (CENSUS/ADD? FED) A, Sh,ne

    .... Al

    C,t

    Copy •

    "Format Painter

    Anal Umcode - 10 A A- fl-· Wrap Text

    B / ll · _ · -a - '" .. ~ Merge & Center • -o.n..,,

    s. % ' - ·.: ., ™ . "J

    Concht1onal FOfmat M Fonnattm,g • Table · ..,..,

    r£J- EE ti] L AutoSum - Ay p (i]FIII· z Cell Insert Delete Fonnat

    Clea1 · Son& Find&

    Style,· FIiter· Select· , ... , .... fi ll "NAME ","GEO_ID","OP02_0001E","OP02_0001M","OP02_0001PP,"OP02_0001PM","OP02_0002E","OP02_0002M",·oP02_0002PP,"OP02_0002PM","OP02_0003P,"DP02_0003M",· o ,..

    A C O G H l J K L M N O Q l• lrNAME". GEO_JD",1)P02..000IE","DP02..000IM",1)P02..000IPE"."OP02..000IPM","DP02..0002E","DP02..0002M".1)P02..0002PE","OP02..0002PM","DP02..0003E",1)P02..0003M".·oP02..000JPE"'."OP02..0003PM",1)p

    -

    District 7 ( 11 61h Congress). Alabama","500 1600USO 107", "250210". "5190". "2502 10"," -888888888" ," 143514"', "5320". "57 .4"," 1. 7", "53856", "3597". "21.5"," 1.3", "80099", "4104" ,"32.0"." 1.4", "24793", "2596" ,"9.9" ," I

    District 5 ( I 16th Congress), GalfOflia"', "5001600US0605"' ."263687". "4569" ."263687". "-888888888"'," 172232" ,"4726" ."65.3" ," 1.4" ,"69062" ."323 1"."26.2"." 1.2" ." 126148", "4237" ."47 .8"." 1.4" ."47779". "2649": 16.i Olstrlcl 8 ( 116th Congress), Calforria","5001600US0608","232969","4936"."232969"."-888888888"," 165614","4882",'71.l","1.8","7 13 11","4138","30.6","1.8","I 16317","5526","49.9"."2.2","47074","3929",-W.

    District 18 ( 116th Congress), C81fornla"."500 1600US0618" ,"270798"', "484 7". "270798" ," -888888888" ," 190216". "5050" ,"70.2"." 1,5". "85433". "3927", "31.5"." 1,3"." 159183"'."5173". "58.8"." 1, 7". "71966". "3249". "26. District 22 ( I 16th Congress), CalfOflia"',"500 1600US0622" ,"247092", "5001·, "247092"," -888888888" ,"178884","4634". "72.4"'," 1.3", "86542". "4220", "35.0"," 1.5"." 127883"',"464r, "51.8"," 1.8", "58500", "3523", "23. District 34 ( 116th Congress). CalfOflia"',"500 1600US0634" ."260836", "5331". "260836"' ."-888888888": 146529". "408 1". "56.2"," 1.5". "57781". "2863", "22.2". "1.2". "87045", J708" ,"33.4"," 1.4", "33588", "2592": 12.

    District 38 ( I 16th Congress). Celfonia"."5001600US0638","204009","4323"."204009"."-888888888","159081"."3788"."78.0"." l.5"."60308"."3677"."29.6"."1.8"."110385"."3993"."54. l","1.8","45251","3113"."22.1 District 4 ( I 16th Congress), Colorado","500 1600US0804 •. "305869","4052"'."305869","-888888888"',"2 16631","4221 "',"70.8"'."1 .2"'."'95800"."3465","31.3"'." l. 1"." 173393","4174"',"56.7","1.2"',"73761","3115"'."24. 11

    District I ( 116th Congress). Fk>f'lda", "500 1600US 120 I" ,"295098". "4406". "295098", "-888888888" ," 195943". "4393" ,"66.4"," 1.2" ,"72032". "3290" ,"24.4"," 1.0"," 146293", "5057". "49.6"," 1.5", "48685"."30 12"." 16.5",,

    District 23 ( 116th Congress). Flor1da" ."500 l600US 1223". "274559", "5462". "274559" ." -888888888"." 181267", "4430". "66.0"," 1. 7", "73080". "3841". "26.6"." 1.5"." 133838"."44 19", "48.7"." 1.6", "5 1257"."3570"." 18. 7", District 6 ( I 16th Congress). Georgia" ,"5001600US 1306", "287599"."5243"', "287599" ," -888888888" ," 192068","4973", "66.8"'," 1.4", "91465", "3825", "3 1.8"," 1.3"'," 159853","4574"',"55.6"." l.4"',"73499"."3846"', "25.6"',

    Olstrlcl 9 ( I 16th Congress). Georgla","500\600US 1309"."281627","4678"'."28 1627","-888888888","202235","4827","71.8"',"1.4"',"78336","3515","27.8"',"1. l","159332","4234","56.6"'," 1.3"',"57483"."3 128","20.4",

    District 17 ( I 16th Congress). llnols","5001600US 1717"."2809 1r."3947"."2809l7","-888888888"."169931"."4425","60.5"." 1.4"."68851"."3240"."24.5"."1. l","11 9100"."4315"."42.4","l.4"."38046"."2666"." 13.5"," Olslrlct 4 ( I 16th Congress), Indiana" ,"500 l600US 1804", "292 185"' ,"3460". "292185" ,"-888888888"," 195434"',"4 148", "66.9"." l.3"',"80045"'."3569", "27 .4"," I. I"'," 148588" ,"4682","50.9" ," l.5"',"56095"' ."2786"'." 19.2","

    District I ( I 16th Congress). Man8"."5001600US230 1·, "295578"'."42 lr. "295578" :-888888888"." 176736"'."4457", "59.8"," 1.4". "63882". "3514". "21.6"," 1. I"." 140946"',"4090"'."47 .r ." 1.4"."46657", "2684"'," 15.8", "O Olstr1ct 2 ( 116th Congress). Mal)18nd"."500 1600US2402" ."286945". "5407" ,"286945", "-888888888"." 185981" ."5343" ,"64.8"." 1.6" ,'76020" ,"4558"."26.5"." 1.5"." 125613". "4575" ."43.8"." 1.4". "46108". "352r ," 16. '1 District 7 ( I 16th Congress), Mal)18nd", "5001600US2407","270505", "5589" ,"270505". "-888888888"'," 160253" ,"4708","59.2" ," 1.4" ,"64466" ,"3546","23.8" ," 1.2" ,"99499" ,"3679"."36.8" ," I .2","39157" ,"2707"." 14 .5"', District 4 ( I 16th Congress). Massachusetls"."5001600US2504"'."279926","5 118","279926","-888888888"," 193933","3952","69.3","l.6"',"8320\","3721"',"29.7"," l.3"',"157762","4411","56.4","1.8","65807"."3222"

    District 8 ( 116th Congress). Massachusens". "500 l600US2508", "301338" ,"558 1"."301338". "-888888888"." 179401" ,"5099"."59.5" ,"1.5".'73487"."4037". "24.4"." 1.3"." 135 105" ,"4065"."44.8" ." 1.3" ."54775"."2912"'

    District 6 ( 11 61h Congress). Michigan" ,"500 l600US2606". "285178"',"3922", "285178" ,"-888888888"," 186497","4348", "65.4"," 1.2", "74046"', "3 100", "26.0"," 1.0"." 139771" ,"3548","49.0"." l.2". "49391","2630"," 17 .3"

    ::: ~~! :~~h=~e:;.)~=~::,::;.~:;::~:~·;:: .. '.::s:~:·~:::::::: .. ~:;;:: .. '.:~·::'.:::~:;~~:~:~~=~:=-~~.~:~;~~:~:;·:, ~=-~ :!,; .. ~ :·11.~ .. ~ :::;~ :!~-~ ~;~~:] (Ctrl) .. 11ct 6 ( 116th Congress). Mlssourr, "5001600US290fr,"290010". "4312" ."2900 10","-888888888"." 192085". "4626" ,"66.2"." 1.3". "82864" ."3871" ."28.6"." 1.3": 152192". "4596" ."52.5"." 1.4".

    r+) Count: • 31

    Step 7: Copy all of these results into MS Excel:

    a) Press Ctrl-A to select all contents on the page

    b) Press Ctrl-C to copy

    c) Paste into the first cell of MS Excel (Ctrl-V)

    STEP 7

    Step 8: Next, we need to format the results in Excel by removing the comma between (116th Congress) and the states.

    a) Highlight Column A in Excel.

    STEP 8a

    4

  • Q t-:, " • Bool:::1 EHe-1

    File 11\Sert !>age Layout Formulas Oat.a Review View ACROBAT SAS Q Tell me what you want lo do_ Jess.ca C Barnell (CENSUS/ADDP FED) .>'4- Share

    A ~Cut Anal Umcode • 10 f}-· WrapText Gene,al

    PaOe ~Copy •

    "'Formall>arnler • • ~ Merge&Cl!nter • s. % ... ... Cood1t1onal Format as; Cell

    Fcxmattmg • Table· St)4es • .,,., Al

    ''"" - , .. Jx (("NAME"tGEO_ ID"," DP02_CXXJ1E","DP02_0001M•,"P02_0001PP,"DP02_0001PM","DP02_0002E•,•P02_0002M","DP02_0002PP,"DP02_0002PM","DP02_0003E•,"P02_0003M","D • G H M N O Q l•

    ..... 20~-~; ~~~~r~s!:::!~,..\~: .. ~:~~~ .. ~~~~;~~~~t=~~~:\~:~;-~ .. ~ ·, • 726" ."65.3": 1.4" ,"69062" ,"323 1" ."26.2" ," 1 .2" ," 126148" ,"4237" ,"47 .8" ." 1.4" ,"47779", "2649" ." 18.1

    FinQ ~ 4"," 2","71. r ."1.8",'71311","4138","30.6","1.8","1 16317","5526","49.9","2.2","47074","3929","20.

    ~::::; ==a ::: 634:::;~:!:::~::::::~::::::::::~:::~:!:::::~:::::~;:::~:::::::;:::::~;~:~:: District --=a 129", 001·.·56.2","1.5","57781","2863","22.2","1.2","87045","3708","33.4"," 1.4","33588","2592"." l2. District Opt,Ons » 181", 788","78.0","1.5","60308","3677","29.6","1.8"," 110385","3993","54.1","1.8","45251","3113","22.j

    District 4 1161 ~--~ 1"," 2 1","70.8"," 1.2","95800"',"3465","3 1.3"," 1. l"," 173393","4 174","56.7"," 1.2","73761","3 115","24. \"

    ~::::; ~~ ~I Repticr~I B@place F1ndAI I ~ndNext I Oose ~~! · ·:~~~~.~~~;.~~~ ..... ~=~-~~ ..... ~~~~ ..... ~~~:.~:~~:~~;.~·l~~:~::;.~~~~:.~~~~;J District 6 1161h Congress). Georgia" ."5001600US 1306" ."287599"."5243". "287599": -888888888": 192068"."4 3" ."66.8"." 1.4", "91465"."3825". "31.8"." l.3"."159853" ."4574"."55.6": 1.4" ,'73499"."3846", "25.6", District 9 , , , , , , , , 7","71 .8","1.4","78336","3515","27.8","1 .1"," 159332","4234","56.6","1.3","57483","3 128","20.4", District 17 ( 116th Congress). llnols" ."500 1600US '17 17", "2809 '17" ,"3947", "280917": -888888888": 16993 I" ,"4425","60.5"." l.4","68851" ,"3240"."24.5"." I. 1"." 119100" ."43 15" ."42.4": 1.4" ,"38046", "2866" ," 13.5": District 4 ( 1161h Congress). Indiana", "5001600US 1804". "292 185" ,"3460". "292185" ," -888888888". "195434" ."4148". "66.9"."1.3". "80045","3569". "27.4"."1. ·1". "148588" ."4682"."50.9" ." I .5" ."56095","2786"," 19.2". District 1 (1161h Congress). Malne"."5001600US230 I", "295578". "4217", "295578"."-888888888"." 176736", "4457". "59.8", "1.4", "63882", "3514", "21.6"," 1.1"," 140946" ."4090", "47. r," 1.4", "46657","2684". "15.8"."0 District 2 (116th Congress). Maryland", ·5001600US2402" ,"286945", "5407" ."286945", • -888888888" ," 185981". ·5343· ."64.8" ," 1.6" ."76020" ."4558" ."26.5" ," 1.5": 125613", ·4575·. "43.8", • 1.4·. "46108", "3527": 16. 1j District 7 (116th Congress). Maryland", "5001600US2407" ,"270505". "5589" ."270505". "-888888888": 160253". "4708" ."59.2" ."1.4" ."64466" ,"3546"."23.8" : 1.2· ,"99499" ,"3679"."36.8" ," 1.2·. "39157" ."2707". "14.5".

    District 4 ( 1161h Congress). Massachusens" ,"5001600US2504", "279926" ."5118","279926". "-888888888"," 193933"."3952" ."69.3": 1.6"."83201","3721", "29.r; 1.3", "157762" ,"441 1","56.4"." 1.8", "65807" ,"3222"1 District 8 ( 11 61h Congress), Massachusens· ,"5001600US2508"."301338" ."5581","301338" ,"-888888888": 179401 "."5099" ."59.5" ... I .5","73487"."4037","24.4"," 1.3"," 135 105" ."4065","44.8": 1.3", ·54775· ."29 I 2"1

    District 6 ( 1161h Congress). Mlcnlgan" :soo 1600US2606". "285178" ,"3922". "285178" ,"-888888888". "186497"."4348". "65.4": 1.2". "74046". "31 oo·. "26.0", • 1.0·." 13977 1· ,"3548". "49.0"." 1.2". "49391" ,"2630". "17 .3")

    ~:::: ;~~~;:~hc::::~.>~:=~::,:,~:~~:::;:~ .. ;::.'.:::;:~-~:;,:: .. '.:~·:-~::.~~:~~~~~:~-~=-~:;":0-~~~.~~~:;~~~~:;"::~ ~=-~ ~-::: .. ~ ~11.; .. ~ ~-=::~ ~-::a~~ ~;~~:l 24 reongres District 6 ( 116th Congress). Missourr:soo1600US2906","290010"."4312","290010";-888888888·;192oas"."4626","66.2"."1.3"."82864","387 1"."28.6"." 1.3"."152 192"."4596"."52.5"."1.4", · · · 1

    Shfft1 I ® Ill l!!I -

    Find and Replace ? X

    Options »

    Replace 811 ep ace find All find @Kl: C1ose

    Find and Replace ? X

    Find what: ), V

    V

    Options >>

    G eplace 810 ~[ __ Be_ P_!_ac_e_~ Fjn All find N@ a ose

    b) Press Ctrl- F and click the Replace Tab

    STEP 8b

    c) Enter the following:

    a. Find what: ),

    b. Replace: )

    STEP 8c

    d) Click Replace All.

    STEP 8d

    5

  • Find and Replace

    Fin_g_ Re~I ,ce

    Find what: ),

    Rtpla re /\th~

    R!eplil re ,611 I [ B@p!ace [ find All

    Get External Existing Data· Al

    Get & T~nsform Connea1ons Sort& f,lter

    .., ft (("NAME", 111GEO_ ID", 111 DP02_0001E","DP02_0001M 111 ,"DP02_0001

    A 8 CO G HI J (("NAME", GEO_IO"."OP02_0001E"."OP02_0001M","OP02_0001PE","OP02_0001PM","OP02_0002E","

    al District 7 (116th Congress) /llabama"."500I600US0107","250210"."5190"."250210"."

    al District 5 (116th Congress) Galfomia"."5001600US0605"."263687"."4569","263687"."

    al District 8 (116th Congress) Gaifomla"."5001600US0608"."232969"."4936"."232969"."

    District 18 (116th Congress) Gaifomla"."500I600US0618"."270798"."4847"."270798"."

    al District 22 (116th Congress) Gafifomla"."5001600US0622"."247092"."5001"."247092"."

    al District 23 (116th Congress) Flor1de"."5001600US1223","274559"."5462","274559"."

    al District 6 (116Ih Congress) Georgla"."5001600US1306","287599"."5243"."287599"."

    District 9 (1I6Ih Congress) Georgla"."5001600US1309","281627"."4678"."281627"."

    District 17 (116Ih Congress) llnols"."500I600US l 7 I 7"."280917"."3947"."2809I7"."·

    al Dlstr1cl 4 (1I6Ih Congress) lndlana"."500 I600US l804"."292185"."3460","292185","

    al Dlstr1cl 1 (1I6Ih Congress) Malne"."5001600US2301","295578"."42 I 7"."295578"."·

    fin Ne

    ? X

    V

    V

    Opti ons>>

    ~ a ose J

    What-If Forecast Group Ungroup Subtotal Manage Data Model Analysis. Sheet

    Forttast

    X 2_0003M 111 ,"D

    The Ted Wizard has detennined that your data is FiJ-ed Width.

    d' this IS cornCl choose Next. or choose the data type that best desmbes your data.

    Originaldata t~,pe

    Cl y K JP ti .at best dMaibes your data: @ !g~limdedi ] · Char finish al Dlstr1cl 4 (116th Congress) Massachusetts","500t600US2504"."279926"."5'II8"."2799 !,;;,=~=~ ,"65807"."3222", al Dlstr1cl 8 (1I6Ih Congress) Massachusetts·, ·500 I600US2508", ·301338", "558 I", ·301338", "-888888888"," 179401 ", ·5099·, "59.5", • 1.5· ."73487", "4037", "24.4"," 1.3"." 135 105" ,"4065", "44.8"," 1.3", ·54775· ,"2912",

    al Dlstr1cl 6 (1 I6Ih Congress) Mlchigan·,·500I600US2606"."285178","3922", "285178","-888888888", "I86497","4348","65.4"," 1.2","74046"."3I00","26.0"," I .0"." I39771","3548","49.0"," I .2","49391","2630"," 17.3",

    District 13 (116th Congress) Mlchigan·,·5001600US261 3","266256","442 t"."266256",".888888888","I4602I","4221","54.8"," l .6","83859","3448","24.0","1.3","68996","2968"."25.9"."I. l","25942","2258","9.7","

    al District 2 ( I 16Ih Congress) Mlssoorf' ,"5001600US2902", "301587", "4742"."301587","-888888888","206143", "4826","68.4"," 1.3", "81582", "3995", "27. 1 ·," 1.3", "169732", ·4543·, "56.3" ," 1.4", "64377", "3381", "21.3",

    al District 6 (1 16Ih Congress) Mlssoorf',"5001600US2906","2900 I0","43I2","2900I0","-888888888","I92085","4626","66.2"," l .3","82864","3871","28.6"," l .3","152192","4596","52.5"," l .4","5!12"""-""'=-""t.=~

    Shttt1 0 Courit: A38 I!!] -

    e) Once all replacements have been made, close out the Find and Replace box.

    STEP 8e

    Step 9: Now convert the text to columns.

    a) Highlight column A again.

    b) Click Data -> Click Text to Columns -> Select Delimited -> Click Next.

    STEP 9b

    6

  • 1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    22

    23

    24

    l n"NAME"

    b1l +) • : Bookl Em·I

    FIie Home Insert Page layout Formulas Review View ACROBAT SAS Q Tellmewhatyouwanttodo- JessicaCBarnett(CENSUS/ADDPFEO) ?{share

    El Show Queries ~ [J From Table

    ~. [l Recent Sources G.t&Transform

    [} Get External xstmq

    Data· ct G@tExtffna!Data

    Ref, Al

    l!l connect1ons ~dilll T u Sort filter

    "" t ,,.. l,-Advanced

    ConMcttons Sort&Fdter

    ~?:i Ii FlashFIII !:1-ci Consolidate f1 0 ~Ill .. oelil 1!11 B Remove Duplicates Text to Gt Manage Data Model What-If F01ecast Group Ungroup Subtotal Columns c:i Data Vahdat1on .. Analysis· Sheet

    Data Tools For~st Outlin.

    A1

    11

    12

    13 14

    lS

    21

    22

    23 24

    Jx l( ,.NAMr,-GEO_ ID","DP02_0001E -,"DP02_0001M","DP02_0001 Convert Text to Columns Wizard - Step2 of 3 X 2_0003M","D A 8 C D F G H I J This scrun lets you set the d,linvten; your data contains. You can SH how your teld. is affect,d m the pr,view below T l ...

    l("NAME", GEO_ID","DP02_0001E","DP02_000 IM","OP02_0001PE","DP02_0001PM","DP02_0002E"," 2_0003PM~."DP1

    District 7 (116th Coogress) Alabama"."5001600US0107"."250210"."5190"."250210"." .i ,..,::;==--~ '."2596","9.9","1. District 5 (116th Coogress) Caifomio","5001600US0605"."263667","4569","263687","- D '''" """"';.,., ,,,;m,,,,., 0,. 9"."2649","18.1" Dlstncl 8 (1"16th Congress} C8Mfomla'',"5001600US0608","232969","4936","232969"," 4","3929","20.2"

    DlstOCI ·Ie (1 '16th Congress) Califomla","5001600US0618","270798";4847","270798","1 ._T'T;p= " '"• --"" Teld.gualifitr. · ~ 66","3249","26. District 22 (116th Coogress) Cafifomio"."5001600US0622"."247092"."5001","247092"." 00","3523","23.7

    District 34 (116th Coogress) Cafifomio"."5001600US0634"."260836"."5331"."260836"." 8"."2592"."12.9"

    District 38 (116th Coogress) Catifomio"."5001600US0638"."204009"."4323","204009"." 51"."3 11 3"."22.~ District 4 (116th Coogress) COOfedo"."500I600US0804"."305869"."4052"."305869"."· 1"."3115"."24.1".I

    Distrlcl 1 (116th Coogress) FIO

  • Find and Replace ? X

    Opjion5 »

    Replace 611 ,Bepface (.ind Next a ose

    Find and Replace ? X

    Fing ~

    Opjjons >>

    ~ ~_.B_e_p_la_ce_~ F[nd All (.ind Next Cl ose

    Find and Replace ? X

    Fing ~ 11 Fl I V

    Opjions >>

    ~ ,Beplace F[nd Al l (.ind Next Close J

    Step 10: To remove the quotation marks and brackets:

    Quotation Marks

    a) Press Ctrl- F and click the Replace tab.

    b) Enter the following:

    Find what: “ Replace: (leave this blank)

    c) Click Replace All

    Left Brackets

    a) Press Ctrl- F and click the Replace tab.

    b) Enter the following:

    Find what: [ Replace: (leave this blank)

    c) Click Replace All

    Right Brackets

    a) Press Ctrl- F and Click the Replace Tab

    b) Enter the following

    Find what: ] Replace: (leave this blank)

    c) Click Replace All

    8

  • Find and Replace

    (X)

    [ Options >>

    Rep lace Find All f ind Next Close

    Find and Replace

    [ Options >>

    Rep lace Find All f ind Next Close

    Step 11: Change instances of -888888888 and -999999999 to (X).

    -888888888

    a) Press Ctrl- F and click the Replace tab.

    b) Enter the following:

    Find what: -888888888 Replace: (X)

    c) Click Replace All

    -999999999

    a) Press Ctrl- F and click the Replace tab.

    b) Enter the following:

    Find what: -999999999 Replace: (X)

    c) Click Replace All.

    Step 12: Repeat these steps for Tables DP02PR, DP03, DP04, and DP05.

    Another option is to change group(DP02) to group(DP02PR), etc. in the URL below and start with Step 6. https://api.census.gov/data/2018/acs/acs1/profile?get=NAME,group(DP02PR)&for=congressional%20district:*

    9

    https://api.census.gov/data/2018/acs/acs1/profile?get=NAME,group(DP02PR)&for=congressional%20district:*https://api.census.gov/data/2018/acs/acs1/profile?get=NAME,group(DP02PR)&for=congressional%20district:*