Skip to content

Commit 2fcd018

Browse files
committed
slight reorganization
1 parent 6d2f2f8 commit 2fcd018

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

docs/Sample_Dataloading_Session.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ After this command executes successfully, you will see a database in your postgr
6262
* a subdirectory `compare_to_Georgia_xxxx_xxxx` with the results of the comparison to the [reference results](../src/reference_results/Georgia.tsv)
6363
* a subdirectory `load_or_reload_all_xxxx_xxxx` with warnings from the data uploading. You may wish to look at the file `Georgia_jurisdiction_dictionary.txt.warnings`, which lists the contests present in the xml results file that were not recognized during processing. If these contests and their candidates had been added to the Georgia-specific information in the repository (see "Creating Jurisdiction files" below, or in the [User Guide](User_Guide.md)), these warnings would not appear.
6464

65-
## Reading data from the database
65+
## Exporting and analyzing data
6666
To pull data out, you will need to use the Analyzer class:
6767
```
6868
>>> an = ed.Analyzer()
6969
```
7070

71-
## Export results
71+
### Export
7272
You can export results in tabular form:
7373
```
7474
>>> an.export_election_to_tsv("GA_results.tsv", "2020 General")
@@ -98,10 +98,9 @@ The program (v.2.0.1 and higher) can also produce a string of data in the NIST C
9898
>>> an.export_nist_json_as_string("2020 General", "Georgia")
9999
```
100100

101-
## Analysis and Plots
101+
### Scatter Plots
102102
To draw pictures automatically, you will need [`orca` installed on your system](https://github.com/plotly/orca). If `orca` is not installed, you can still pull the information necessary to make plots
103103

104-
### Scatter plots
105104
You can create scatter plots of results by county. For example, create a jpeg comparing Biden's vote totals to Trump's vote totals with:
106105
```
107106
>>> biden_v_trump = an.scatter("Georgia","2020 General","Candidate total","Joseph R. Biden","2020 General","Candidate total","Donald J. Trump",fig_type="jpeg")

0 commit comments

Comments
 (0)