{"part":"task","text":"# Datasets\nPass a dataset's id as the `dataset` argument.\n{\n \"id\": \"ds_0057\",\n \"rows\": 1400,\n \"description\": \"| Variable Name | Description                                                                                 |\\n|---------------|---------------------------------------------------------------------------------------------|\\n| (index)       | Row index from the CSV export                                                               |\\n| Unnamed: 0    | Secondary row index carried over from the original export                                   |\\n| state         | State name                                                                                  |\\n| stcd          | -                                                                                           |\\n| year          | Election year                                                                               |\\n| cdID          | -                                                                                           |\\n| dv            | Democratic share of the two-party vote in the district\u2019s U.S. House election (percent)      |\\n| dvp           | Democratic share of the two-party vote in the district\u2019s most recent prior House election (%)|\\n| dpres         | Democratic share of the two-party presidential vote in the district-year (percent)          |\\n| party         | Party of the most recent House seat winner, coded +1 for Democrat and -1 for opposition     |\\n| pres_elec     | Indicator for presidential election year (1 = presidential year, 0 = otherwise)             |\\n| elecdate      | Timing of the House election relative to November presidential election (pre, nov, post)    |\\n| margin        | Absolute margin of the most recent prior House election in percentage points                |\\n| dem_seat      | Indicator that the most recent prior House seat was won by a Democrat (1 = yes, 0 = no)     |\\n| rv            | Signed margin of the most recent prior House election in percentage points (Dem win = +)    |\\n\\nData Description: \\nThis dataset assembles district-level election information for nineteenth-century U.S. congressional and presidential contests during the era of party ballots, covering multiple election years when House races often occurred on nonuniform dates across states. It includes measures of Democratic two-party vote shares for both House and presidential elections by district-year, indicators of election timing relative to November, and derived variables summarizing prior House results (e.g., margins, party control). Values expressed as vote shares are on a 0\u2013100 percentage scale.\\n\\nThe data were constructed from historical election returns compiled from authoritative sources on U.S. congressional elections and political parties, with presidential returns aggregated from county to congressional districts where necessary. The coding captures party identification of House winners, whether an election year coincided with a presidential contest, and whether districts\u2019 House elections were held before, during, or after November. The dataset provides structured context for analyzing patterns in electoral outcomes and the institutional environment of nineteenth-century U.S. elections under party ballots.\",\n \"columns\": {\n  \"Unnamed: 0\": \"int64\",\n  \"state\": \"str\",\n  \"stcd\": \"int64\",\n  \"year\": \"int64\",\n  \"cdID\": \"int64\",\n  \"dv\": \"float64\",\n  \"dvp\": \"float64\",\n  \"dpres\": \"float64\",\n  \"party\": \"int64\",\n  \"pres_elec\": \"int64\",\n  \"elecdate\": \"str\",\n  \"margin\": \"float64\",\n  \"dem_seat\": \"int64\",\n  \"rv\": \"float64\"\n }\n}"}