api-python icon indicating copy to clipboard operation
api-python copied to clipboard

Python client library to access Data Commons

Results 33 api-python issues
Sort by recently updated
recently updated
newest added

**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...

bug

For things such as names or latitude/longitude, most use cases probably only need one value: ![Screen Shot 2020-07-09 at 22 31 15](https://user-images.githubusercontent.com/18621425/87119820-eb002f80-c233-11ea-8ba8-c44702f3a502.png) ![Screen Shot 2020-07-09 at 22 26 53](https://user-images.githubusercontent.com/18621425/87119653-75945f00-c233-11ea-95e1-c9fae59615a0.png) 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...

bug

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...

python api feedback

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...

python api feedback

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...

python api feedback

Add the correct install instructions. https://pypi.org/project/datacommons/ (also update project description)

python api feedback

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...

python api feedback

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...

python api feedback