Skip to content

Commit

Permalink
Fix missing package reference in python api documentation (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
shifucun authored Aug 25, 2020
1 parent 64b13d7 commit 87314ca
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions api/python/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ their DCIDs [California](https://datacommons.org/browser/geoId/06>),
... ?a dcid ?dcid
... }
... '''
>>> result = query(query_str)
>>> result = dc.query(query_str)
>>> for r in result:
... print(r)
{"?name": "Maryland", "?dcid": "geoId/24"}
Expand All @@ -82,7 +82,7 @@ like so. The following returns all rows where the name is "Maryland":

```python
>>> selector = lambda row: row['?name'] == 'Maryland'
>>> result = query(query_str, select=selector)
>>> result = dc.query(query_str, select=selector)
>>> for r in result:
... print(r)
{"?name": "Maryland", "?dcid": "geoId/24"}
Expand Down
2 changes: 1 addition & 1 deletion api/python/stat_series.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ In the next example, the parameter "observation=P3Y" overly constrains the reque
throws ValueError:

```python
>>> get_stat_series('geoId/06085', 'Count_Person', observation_period='P3Y')
>>> dc.get_stat_series('geoId/06085', 'Count_Person', observation_period='P3Y')
>>> Traceback (most recent call last):
...
raise ValueError('No data in response.')
Expand Down
2 changes: 1 addition & 1 deletion api/python/stat_value.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ In next example, the parameter "observation=P3Y" overly constrains the request s
throws ValueError:

```python
>>> get_stat_value('geoId/06085', 'Count_Person', observation_period='P3Y')
>>> dc.get_stat_value('geoId/06085', 'Count_Person', observation_period='P3Y')
>>> Traceback (most recent call last):
...
raise ValueError('No data in response.')
Expand Down
2 changes: 1 addition & 1 deletion api/python/stats.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ and [Santa Clara County](https://datacommons.org/browser/geoId/06085).
}
}
}
```
```
2 changes: 1 addition & 1 deletion api/python/triple.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ We would like to get one triple per property and type combination associated wit
```python
>>> import datacommons as dc
>>> dc.set_api_key(YOUR_API_KEY_HERE)
>>> get_triples(['geoId/06'], limit=1)
>>> dc.get_triples(['geoId/06'], limit=1)
{
'geoId/06': [
('geoId/0653', 'containedInPlace', 'geoId/06'),
Expand Down

0 comments on commit 87314ca

Please sign in to comment.