Skip to content

Commit 5536917

Browse files
authored
Merge pull request #12 from QuantGov/countries
Countries
2 parents 64af0e5 + c489777 commit 5536917

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The RegCensus Python library is pip installable:
1515
$ pip install regcensus
1616
```
1717

18-
Once installed, import the library, using the following (using the `rc` alias to more easily use the library):
18+
Once installed, import the library, using the following (use the `rc` alias to more easily use the library):
1919

2020
```
2121
import regcensus as rc
@@ -102,8 +102,8 @@ The __get_values__ function is the primary function for obtaining RegData from t
102102
* filtered (optional) - specify if poorly-performing industry results should be excluded. Default is True.
103103
* summary (optional) - specify if summary results should be returned, instead of document-level results. Default is True.
104104
* country (optional) - specify if all values for a country's jurisdiction ID should be returned. Default is False.
105-
* industryType (optional): Level of NAICS industries to include, default is '3-Digit'.
106-
* download (optional): If not False, a path location for a downloaded csv of the results.
105+
* industryType (optional): level of NAICS industries to include. Default is '3-Digit'.
106+
* download (optional): if not False, a path location for a downloaded csv of the results.
107107
* verbose (optional) - value specifying how much debugging information should be printed for each function call. Higher number specifies more information, default is 0.
108108

109109
In the example below, we are interested in the total number of restrictions and total number of words for the US (get_jurisdictions(38)) for the period 2010 to 2019.
@@ -112,6 +112,14 @@ In the example below, we are interested in the total number of restrictions and
112112
rc.get_values(series = [1,2], jurisdiction = 38, date = [2010, 2019])
113113
```
114114

115+
### Get all Values for a Country
116+
117+
The `country` argument can be used to get all values for one or multiple series for a specific national jurisdiction. The following line will get you a summary of the national and state-level restriction counts for the United States from 2016 to 2019:
118+
119+
```
120+
rc.get_values(series = 1, jurisdiction = 38, date = [2016, 2019], country=True)
121+
```
122+
115123
### Values by Subgroup
116124

117125
You can obtain data for any of the three subgroups for each series - agencies, industries, and occupations (when they become available).

0 commit comments

Comments
 (0)