{"part":"task","text":"# Datasets\nPass a dataset's id as the `dataset` argument.\n{\n \"id\": \"white_evaluating_the_minority\",\n \"rows\": 575,\n \"description\": \"This dataset contains information on U.S. state legislative primary and general elections, focusing on competitive races where the top two primary candidates differed by race or ethnicity, enabling analysis of electoral outcomes when parties nominate candidates of different racial backgrounds.\\n\\nVariables:\\nyear.x: Election year of the contest\\ngeneral2p: Party's two-party vote share in the general election for that district-year (NA if the general was uncontested)\\ngeneral2palt: Alternative outcome that codes uncontested generals as 1 for the party's nominee; otherwise same as general2p\\nminorityprimarymargin: Primary election win margin of the minority candidate calculated as minority candidate vote share minus white candidate vote share\\nincumbentrunning: Indicator that the seat's incumbent entered the party primary (1 = incumbent ran; 0 = open seat)\\nincumbentwins: Indicator that the incumbent won the party primary (1 = nominee is the seat's incumbent)\\nwomanwins: Indicator that the party's primary winner/nominee is a woman (1 = yes, 0 = no)\\nparty: Party of the contest (e.g., \\\"\\\"Democratic\\\"\\\", \\\"\\\"Republican\\\"\\\")\\nDem_2pyShare: District Democratic two-party presidential vote share (2016) - baseline partisan lean\\nTotal.x: District population\\nuniquedist_noyear: District identifier without year (e.g., \\\"\\\"MA 0 TWELFTH SUFFOLK\\\"\\\"; includes a chamber flag)\\nuniquedist: Unique district-year identifier (e.g., \\\"\\\"2018 MA 0 Twelfth Suffolk\\\"\\\")\\npctWhite, pctBlack, pctLatino, pctAsian: Racial/ethnic composition of the district; share of residents who are White, Black, Latino, Asian, respectively\\nRDDBlack: Indicator that the primary matchup was Black vs. White\\nRDDLatino: Indicator that the primary matchup was Latino vs. White\\nRDDAsian: Indicator that the primary matchup was Asian vs. White\\nuncontestedgen: Indicator that the general election was uncontested for that party (1 = no major-party opponent)\\nUpper.x: Chamber indicator (1 = upper chamber/senate; 0 = lower chamber/house)\\nmmd2keep: Flag for multi-member districts (NA = single-member (kept), 1 = multi-member districts)\",\n \"columns\": {\n  \"Unnamed: 0\": \"int64\",\n  \"geoid\": \"str\",\n  \"geoname\": \"str\",\n  \"distname\": \"str\",\n  \"district\": \"str\",\n  \"State_FIPS\": \"int64\",\n  \"state.y\": \"str\",\n  \"year.x\": \"int64\",\n  \"general2p\": \"float64\",\n  \"general2palt\": \"float64\",\n  \"minorityprimarymargin\": \"float64\",\n  \"incumbentrunning\": \"int64\",\n  \"incumbentwins\": \"int64\",\n  \"womanwins\": \"int64\",\n  \"party\": \"str\",\n  \"Dem_2pyShare\": \"float64\",\n  \"Total.x\": \"int64\",\n  \"uniquedist_noyear\": \"str\",\n  \"uniquedist\": \"str\",\n  \"pctWhite\": \"float64\",\n  \"pctBlack\": \"float64\",\n  \"RDDBlack\": \"float64\",\n  \"pctLatino\": \"float64\",\n  \"RDDLatino\": \"float64\",\n  \"pctAsian\": \"float64\",\n  \"RDDAsian\": \"float64\",\n  \"uncontestedgen\": \"float64\",\n  \"Upper.x\": \"int64\",\n  \"mmd2keep\": \"float64\"\n }\n}"}