• About Us
  • Disclaimer
  • Contact Us
  • Privacy Policy
Thursday, July 3, 2025
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
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter


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

Expanded access to Google Vids and no-cost AI tools in Classroom

Google’s customizable Gemini chatbots are now in Docs, Sheets, and Gmail

Related Posts

Expanded access to Google Vids and no-cost AI tools in Classroom
Google Marketing

Expanded access to Google Vids and no-cost AI tools in Classroom

July 3, 2025
Google’s customizable Gemini chatbots are now in Docs, Sheets, and Gmail
Google Marketing

Google’s customizable Gemini chatbots are now in Docs, Sheets, and Gmail

July 3, 2025
No-cost AI tools that amplify teaching and learning
Google Marketing

No-cost AI tools that amplify teaching and learning

July 3, 2025
The 7 best smartwatches for Android in 2025
Google Marketing

The 7 best smartwatches for Android in 2025

July 3, 2025
Google AI announcements from June
Google Marketing

Google AI announcements from June

July 2, 2025
Google ordered to pay $314 million for ‘unavoidable’ data transfers
Google Marketing

Google ordered to pay $314 million for ‘unavoidable’ data transfers

July 2, 2025
Next Post
Coming This October: Experiential Marketing Month

Coming This October: Experiential Marketing Month

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

POPULAR NEWS

Communication Effectiveness Skills For Business Leaders

Communication Effectiveness Skills For Business Leaders

June 10, 2025
7 Best EOR Platforms for Software Companies in 2025

7 Best EOR Platforms for Software Companies in 2025

June 21, 2025
Eating Bugs – MetaDevo

Eating Bugs – MetaDevo

May 29, 2025
Top B2B & Marketing Podcasts to Lead You to Succeed in 2025 – TopRank® Marketing

Top B2B & Marketing Podcasts to Lead You to Succeed in 2025 – TopRank® Marketing

May 30, 2025
Entries For The Elektra Awards 2025 Are Now Open!

Entries For The Elektra Awards 2025 Are Now Open!

May 30, 2025

EDITOR'S PICK

Former SpaceX manager alleges harassment, retaliation, and security violations in lawsuit

Former SpaceX manager alleges harassment, retaliation, and security violations in lawsuit

July 2, 2025
How to Locally Optimize Your Online Presence

How to Locally Optimize Your Online Presence

June 5, 2025
Campagne intelligente : Plezi vs Webmecanik, quelles différences ?

Campagne intelligente : Plezi vs Webmecanik, quelles différences ?

May 27, 2025
Chromebook Plus laptops like Lenovo’s sleek, new 14-incher are getting free Gemini AI features

Chromebook Plus laptops like Lenovo’s sleek, new 14-incher are getting free Gemini AI features

June 23, 2025

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

  • Cyber Incident Planning And Response – A Business Imperative In 2025
  • New Test Features for AI Generation
  • Google Launches Veo 3 for Realistic AI Video Creation
  • Artificial intelligence enhances air mobility planning | MIT News
  • 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

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?