• About Us
  • Disclaimer
  • Contact Us
  • Privacy Policy
Wednesday, July 29, 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


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.



Source_link

READ ALSO

Introducing Lyria 3.5 in Google Flow Music

Artists are lawyering up against AI slop, and some are even winning

Related Posts

Introducing Lyria 3.5 in Google Flow Music
Google Marketing

Introducing Lyria 3.5 in Google Flow Music

July 29, 2026
Artists are lawyering up against AI slop, and some are even winning
Google Marketing

Artists are lawyering up against AI slop, and some are even winning

July 29, 2026
AI’s finally expensive enough to make Wall Street nervous
Google Marketing

AI’s finally expensive enough to make Wall Street nervous

July 29, 2026
AI tools and training resources
Google Marketing

AI tools and training resources

July 29, 2026
AI leaders sign a statement asking the government to do something about automated AI
Google Marketing

AI leaders sign a statement asking the government to do something about automated AI

July 29, 2026
Using Gemini to manage a farm
Google Marketing

Using Gemini to manage a farm

July 28, 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
App Development Cost in Singapore: Pricing Breakdown & Insights

App Development Cost in Singapore: Pricing Breakdown & Insights

June 22, 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

EDITOR'S PICK

A Checklist for Office Relocations in New York City

A Checklist for Office Relocations in New York City

March 18, 2026
What is the job market like for new college graduates?

What is the job market like for new college graduates?

June 28, 2025
A Hands-On Introduction to cuML for GPU-Accelerated Machine Learning Workflows

A Hands-On Introduction to cuML for GPU-Accelerated Machine Learning Workflows

September 28, 2025
What is organic reach, and how can you improve yours?

What is organic reach, and how can you improve yours?

March 20, 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

  • Moburst’s Mobile Marketing Roundup #33
  • The Scoop: Cracker Barrel’s CEO won the battle but lost the war
  • Nimble claims its new, domain-specialized Web Search Agents cut token costs in half while boosting retrieval accuracy
  • Why Buying Readiness Depends on Buying Groups, Not MQLs
  • 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