• About Us
  • Disclaimer
  • Contact Us
  • Privacy Policy
Sunday, September 13, 2026
mGrowTech
No Result
View All Result
  • Technology And Software
    • Account Based Marketing
    • Channel Marketing
    • Marketing Automation
      • Al, Analytics and Automation
      • Ad Management
  • Digital Marketing
    • Social Media Management
    • Google Marketing
  • Direct Marketing
    • Brand Management
    • Marketing Attribution and Consulting
  • Mobile Marketing
  • Event Management
  • PR Solutions
  • Technology And Software
    • Account Based Marketing
    • Channel Marketing
    • Marketing Automation
      • Al, Analytics and Automation
      • Ad Management
  • Digital Marketing
    • Social Media Management
    • Google Marketing
  • Direct Marketing
    • Brand Management
    • Marketing Attribution and Consulting
  • Mobile Marketing
  • Event Management
  • PR Solutions
No Result
View All Result
mGrowTech
No Result
View All Result
Home Google Marketing

Unlock deeper insights with the new Python client library for Data Commons

Josh by Josh
June 27, 2025
in Google Marketing
0
Unlock deeper insights with the new Python client library for Data Commons

[ad_1]

Data is the bedrock of progress across nearly every field. It serves as the raw material from which profound insights are forged, enabling us to precisely measure current realities, identify critical trends, and possibly predict future outcomes.

At Google, our mission with Data Commons is to organize the world’s publicly available statistical data, making it more accessible and useful for everyone. It’s an open-source knowledge graph that unifies a vast array of public data from diverse sources, simplifying access and comprehension for developers, researchers, and data analysts alike. Along with the datacommons.org website, Google Search uses Data Commons to answer queries like What is the population of San Francisco?, with the top graph generated by Data Commons.

Today, we’re announcing the general availability of the new Python client library for the Data Commons based on the V2 REST API. This new Python library dramatically enhances how data developers can leverage Data Commons.


Real-world impact: partnering with ONE.org

This milestone was significantly shaped by the vision and substantial contributions of our partner The ONE Campaign, a global organization working to create the investments needed for economic opportunities and healthier lives in Africa. We built Data Commons as an open-source platform precisely to encourage community contributions and enable innovative uses, and this partnership with The ONE Campaign perfectly exemplifies that goal. ONE advocated for, proposed the design and coded the client library to make Data Commons’ rich insights available to data scientists and analysts who want to leverage the rich ecosystem of Python analytical tools and libraries.


Support for custom Data Commons instances

The Data Commons platform also allows organizations, like the United Nations or ONE, to host their own Data Commons instances. These custom instances enable the seamless integration of proprietary datasets with the foundational Data Commons knowledge graph. Organizations leverage the Data Commons data framework and tools while maintaining full control over their data and resources.

One of the most impactful additions in the V2 library is robust support for custom instances. This means you can now use the Python library to programmatically query any public or private instance—whether hosted locally, within your organization or on the Google Cloud Platform.


Powerful new features

The Python library makes it very easy to perform common queries against Data Commons data, such as:

  • Exploring the structure of the knowledge graph
  • Retrieving data for any of the 200,000+ statistical variables from over 200 datasets in domains such as demographics, economy, education, energy, environment, health, and housing
  • Easily mapping entities from other datasets to entities in Data Commons

V2 of the client library offers many technical improvements over the V1 library, including:

  • Pandas dataframe APIs are supported as an integral module, with a single installation package, allowing seamless use with other API endpoints in the same client
  • Several new convenience methods for common data queries
  • API key management and other stateful operations built in to the client class
  • Integration with the Pydantic libraries for improved type safety, validation and serialization
  • Support for multiple response formats, including JSON and Python dictionaries and lists
variable = "sdg/SI_POV_DAY1"
variable_name = "Proportion of population below international poverty line"

df = client.observations_dataframe(variable_dcids=variable, date="all", parent_entity="Earth", entity_type="Continent")

df = df.pivot(index="date", columns="entity_name", values="value")

ax = df.plot(kind="line")
ax.set_xlabel("Year")
ax.set_ylabel("%")
ax.set_title(variable_name)
ax.legend()
ax.plot()

Python

Getting started

To get started with the Data Commons Python library, you can install the package directly from PyPI. We’ve also provided comprehensive resources to help you dive in, including reference documentation and online tutorials available as Google Colab notebooks.

For those currently using the V1 Python API, we strongly recommend upgrading to the new V2 Python library. The V1 API is scheduled for deprecation, and adopting the new library ensures you’ll have access to the latest features and continued support.

This library is a testament to the power of open-source collaboration. The open-source code is available on GitHub, and we welcome contributions from the community under the Google Contributor License Agreement.

[ad_2]

Source_link

READ ALSO

3 ways runners can prep for race day with Search

Dreambeans is now available across the U.S.

Related Posts

3 ways runners can prep for race day with Search
Google Marketing

3 ways runners can prep for race day with Search

September 11, 2026
Dreambeans is now available across the U.S.
Google Marketing

Dreambeans is now available across the U.S.

September 10, 2026
New updates to measurement suite in Google Ads
Google Marketing

New updates to measurement suite in Google Ads

September 10, 2026
The incomplete history of Duo devices
Google Marketing

The incomplete history of Duo devices

September 10, 2026
The Anatomy of Harness Engineering: How to Evaluate, Iterate, and Guard AI Coding Agents
Google Marketing

The Anatomy of Harness Engineering: How to Evaluate, Iterate, and Guard AI Coding Agents

September 10, 2026
AI maps global methane emissions from space
Google Marketing

AI maps global methane emissions from space

September 10, 2026
Next Post
Coming This October: Experiential Marketing Month

Coming This October: Experiential Marketing Month

POPULAR NEWS

Trump ends trade talks with Canada over a digital services tax

Trump ends trade talks with Canada over a digital services tax

June 28, 2025
15 Trending Songs on TikTok in 2025 (+ How to Use Them)

15 Trending Songs on TikTok in 2025 (+ How to Use Them)

June 18, 2025
Communication Effectiveness Skills For Business Leaders

Communication Effectiveness Skills For Business Leaders

June 10, 2025
Comparing the Top 7 Large Language Models LLMs/Systems for Coding in 2025

Comparing the Top 7 Large Language Models LLMs/Systems for Coding in 2025

November 4, 2025
App Development Cost in Singapore: Pricing Breakdown & Insights

App Development Cost in Singapore: Pricing Breakdown & Insights

June 22, 2025

EDITOR'S PICK

100 Most Cited Domains in ChatGPT

100 Most Cited Domains in ChatGPT

September 10, 2025
How to Think About Your Meta Advertising Budget

How to Think About Your Meta Advertising Budget

February 3, 2026
Custom Payment Processing Solution for Business

Custom Payment Processing Solution for Business

June 6, 2025
TechniShow 2026 Manufacturing Event Highlights

TechniShow 2026 Manufacturing Event Highlights

March 21, 2026

About

We bring you the best Premium WordPress Themes that perfect for news, magazine, personal blog, etc. Check our landing page for details.

Follow us

Categories

  • Account Based Marketing
  • Ad Management
  • Al, Analytics and Automation
  • Brand Management
  • Channel Marketing
  • Digital Marketing
  • Direct Marketing
  • Event Management
  • Google Marketing
  • Marketing Attribution and Consulting
  • Marketing Automation
  • Mobile Marketing
  • PR Solutions
  • Social Media Management
  • Technology And Software
  • Uncategorized

Recent Posts

  • Cohere Releases North Small Translate: A 218B MoE Translation Model That Scores 83.6 on WMT26 Across 50 Languages
  • The Changing Role of Digital PR in AI Search Landscape
  • How These XL Phones Compete
  • Corporate Event Registration Software: A Practical Guide
  • About Us
  • Disclaimer
  • Contact Us
  • Privacy Policy
No Result
View All Result
  • Technology And Software
    • Account Based Marketing
    • Channel Marketing
    • Marketing Automation
      • Al, Analytics and Automation
      • Ad Management
  • Digital Marketing
    • Social Media Management
    • Google Marketing
  • Direct Marketing
    • Brand Management
    • Marketing Attribution and Consulting
  • Mobile Marketing
  • Event Management
  • PR Solutions