Working with APIs in Python [For Your Data Science Project]

Working with APIs in Python [For Your Data Science Project]

Working with APIs in Python [For Your Data Science Project]. Working with APIs is a necessary skillset for all data scientists and should be incorporated into your data science projects. We’re going to be working with the Youtube API to collect video statistics from my channel using the requests Python library to make an API call and save it as a Pandas dataframe.

We’re going to be working with the Youtube API to collect video statistics from my channel using the requests python library to make an API call and save it as a pandas dataframe. Working with APIs is a necessary skillset for all data scientists and should be incorporated into your data science projects. I talk about the one data science project you’ll ever need in this video https://bit.ly/3rEt6WG so we’ll start with the first step and learn how to work with APIs in python to collect our data.

The python notebook and links to resources are located in this Github repo: https://github.com/Strata-Scratch/api-youtube/blob/main/README.md

Timeline:

  • Intro: (0:00​​​​)
  • Coding on Google Colab: (2:00​​​​)
  • Testing with the Requests Library: (4:16​​​​)
  • Working with the YouTube API: (6:32​​​​)
  • Response from Making API Call: (11:00​​​​)
  • Data is in the 'items' Key: (12:22​​​​)
  • Parsing through the Data: (12:57​​​​)
  • Creating the Loop: (16:17​​​​)
  • Making a Second API Call: (18:30​​​​)
  • Saving to a Pandas DataFrame: (20:31​​​​)
  • Implementing Good Software Engineering Fundamentals: (22:40​​​​)
  • Conclusion: (27:03​​​​)

python api pandas

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

top 30 Python Tips and Tricks for Beginners

In this post, we'll learn top 30 Python Tips and Tricks for Beginners

Python for Beginners #2 — Importing files to python with pandas

In this video tutorial, we'll learn Python for Beginners #2 — Importing files to python with pandas. Use pandas to upload CSV, TXT and Excel files

Lambda, Map, Filter functions in python

You can learn how to use Lambda,Map,Filter function in python with Advance code examples. Please read this article

Python Pandas Objects - Pandas Series and Pandas Dataframe

In this post, we will learn about pandas’ data structures/objects. Pandas provide two type of data structures:- ### Pandas Series Pandas Series is a one dimensional indexed data, which can hold datatypes like integer, string, boolean, float...

Pandas in Python

Pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python programming language.