api-python
api-python copied to clipboard
Python client library to access Data Commons
**Describe the bug** The docstrings and docs indicate that get_stats returns "A dictionary mapping each Place identified by the given dcid to its name and the time series associated with...
For things such as names or latitude/longitude, most use cases probably only need one value:   Having...
**Describe the bug** [Wiki](https://github.com/datacommonsorg/api-python/wiki/Welcome-to-Datacommons) needs a basic introduction to Datacommons. **Expected behavior** Should contain basic information and current news about DataCommons **Additional context** It can also have a page regarding...
I'm trying to get the extension schema for datacommons.org in a machine-consumable form (ideally an .nt file). I tried requested `schema.datacommons.org/latest/all-layers.nt` and similar, but that gives me Schema.org schema without...
`get_property_labels` does not follow the same pattern as the rest of the API and only takes a list as input. Based on the rest of the API I would expect...
Currently, `datacommons.get_triples` returns a list of 3-tuples like so. ``` ('geoId/sch069112212709', 'schoolDistrict', 'geoId/sch0691122') ('geoId/sch069112210678', 'schoolDistrict', 'geoId/sch0691122') ('geoId/sch069112209271', 'schoolDistrict', 'geoId/sch0691122') ('geoId/sch069112206289', 'schoolDistrict', 'geoId/sch0691122') ``` Perhaps we can consider returning more information...
Returning a series of lists from the api does not add much benefit to the user. _Example_ ```python # get state dcids state_dcids = dc.get_places_in(pd.Series(['country/USA']), 'State')[0] # get state names...
Add the correct install instructions. https://pypi.org/project/datacommons/ (also update project description)
There is no way to set the parameter `limit` in `get_property_values` so that all property values are returned. I came across this issue when I was trying to get schools...
If I want to get a list of dcids for states in the United States I currently have to use one of the following two options. ``` # input is...