Changelogs » Datacommons

PyUp Safety actively tracks 281,612 Python packages for vulnerabilities and notifies you when to upgrade.

Datacommons

1.4.2

**Date** - 09/16/2020
  
  **Release Tag** - [py1.4.2](https://github.com/datacommonsorg/api-python/releases/tag/py1.4.2)
  
  **Release Status** - Current head of branch [`master`](https://github.com/datacommonsorg/api-python/tree/master)
  
  New features added to the Python API
  
  -   Added batching to `get_stat_all` to handle querying for many StatisticalVariables across many Places.

1.4.1

**Date** - 08/25/2020
  
  **Release Tag** - [py1.4.1](https://github.com/datacommonsorg/api-python/releases/tag/py1.4.1)
  
  **Release Status** - Current head of branch [`master`](https://github.com/datacommonsorg/api-python/tree/master)
  
  New features added to the Python API
  
  -   `get_stat_value`: returns a single value for the specified Place and StatisticalVariable.
  -   `get_stat_series`: returns a single time series dict for the specified Place and StatisticalVariable.
  -   `get_stat_all`: returns a nested dictionary of all possible time series for each Place and StatisticalVariable pair.

1.3.0

**Release Status** - Current head of branch [`master`](https://github.com/datacommonsorg/api-python/tree/master)
  
  New features added to the Python API
  
  -   Option to use the API without providing API key.
  -   New options to `get_stats`: `measurement_method`, `unit`, and `obs_period` for finer-grain control over returned statistics.
  
  Bugs fixed in new release
  
  -   Elegantly handle sparse responses from `query`.

1.2.0

**Release Status** - Current head of branch [`master`](https://github.com/datacommonsorg/api-python/tree/master)
  
  New features added to the Python API
  
  -   Add get_stats API to get observations given a StatisticalVariable and place dcids.
  
  Bugs fixed in new release
  
  -   Check Null and empty data in REST API response field to avoid KeyError.

1.1.0

**Release Status** - Current head of branch [`master`](https://github.com/datacommonsorg/api-python/tree/master)
  
  New features added to the Python API
  
  -   Handle and ignore NaN in API argument.
  
  Bugs fixed in new release
  
  -   Various small fix.

1.0.9

**Release Status** - Current head of branch [`master`](https://github.com/datacommonsorg/api-python/tree/master)
  
  New features added to the Python API
  
  -   Use six package for urllib.

1.0.7

**Release Status** - Current head of branch [`master`](https://github.com/datacommonsorg/api-python/tree/master)
  
  New features added to the Python API
  
  -   Support python 2.7.

1.0.6

**Release Status** - Current head of branch [`master`](https://github.com/datacommonsorg/api-python/tree/master)
  
  New features added to the Python API
  
  -   Add a new API for getting related places.

1.0.5

**Release Status** - Current head of branch [`master`](https://github.com/datacommonsorg/api-python/tree/master)
  
  New features added to the Python API
  
  -   Remove the dependency on Pandas and Numpy in package dependency.
  -   Replace requests with urllib.

1.0.2

**Release Status** - Current head of branch [`master`](https://github.com/datacommonsorg/api-python/tree/master)
  
  New features added to the Python API
  
  -   Remove the dependency on Pandas.

1.0.1

**Release Status** - Current head of branch [`stable-1.x`](https://github.com/datacommonsorg/api-python/tree/stable-1.x)
  
  New features added to the Python API
  
  -   Added two new functions `get_pop_obs` and `get_place_obs`
  -   SPARQL query is now supported as a function `query` instead of a class.
  -   Added documentation on how to provision an API key and provide it to the API
  
  Bugs fixed in new release
  
  -   Fixed various typos and formatting issues in the documentation.
  -   If the index of the `pandas.Series` passed into functions such as `get_populations` and `get_observations` was not contiguous, then the assignment step would not properly align the values returned by calling the function. This is because the `pandas.Series` returned by the function would have a different index than the given series. This is fixed by assigning the index of the returned series to that of the given series.

1.0.0

New release of the Python API.
  
  -   New functions in the API built on top of the [Data Commons REST API](https://github.com/datacommonsorg/mixer).
  -   `get_property_labels`
  -   `get_property_values`
  -   `get_triples`
  -   `get_populations`
  -   `get_observations`
  -   `get_places_in`
  -   New tests and examples checked into `datacommons/test` and `datacommons/examples`
  -   Full documentation released on [readthedocs](https://datacommons.readthedocs.io/en/latest/)

0.4.3

**Release Status** - Latest on [PyPI](https://pypi.org/project/datacommons/). Current head of branch [`stable-0.x`](https://github.com/datacommonsorg/api-python/tree/stable-0.x).
  
  Patch release that fixes bugs in `datacommons.Client`.
  
  -   Functions `get_cities` and `get_states` now provides `typeOf` constraints in their datalog queries.
  
  0.x
  
  Initial release of the Data Commons API.

0.0.2

**Date** - 09/16/2020
  
  **Release Tag** - [pd.0.0.2](https://github.com/datacommonsorg/api-python/releases/tag/pd0.0.2)
  
  **Release Status** - Current head of branch [`master`](https://github.com/datacommonsorg/api-python/tree/master)
  
  Update to use datacommons Python API 1.4.2, which adds batching to the get_stat_all function used by build_time_series_dataframe and build_multivariate_dataframe.

0.0.1

**Date** - 08/25/2020
  
  **Release Tag** - [pd.0.0.1](https://github.com/datacommonsorg/api-python/releases/tag/pd0.0.1)
  
  **Release Status** - Current head of branch [`master`](https://github.com/datacommonsorg/api-python/tree/master)
  
  Added pandas wrapper functions.
  
  -   `build_time_series` constructs a pd.Series for a given StatisticalVariable and Place, where the time series are indexed by date.
  -   `build_time_series_dataframe` constructs a pd.DataFrame for a given StatisticalVariable and a set of Places. The DataFrame will have Places as the index and dates as the columns.
  -   `build_multivariate_dataframe` constructs a pd.DataFrame for a set of StatisticalVariables and a set of Places. The DataFrame will have Places as index and StatisticalVariables as the columns. The values are the most recent values for the chosen StatVarObservation options.
  
  For multi-place functions, when a StatisticalVariable has multiple StatVarObservation options,
  Data Commons chooses a set of StatVarObservation options that covers the most places. This
  ensures that the data fetched for a StatisticalVariable is comparable across places.
  When there is a tie, we select the StatVarObservation options set with the latest date
  data is available for any place.
  
  
  Changelog