From the course: Data Pipeline Automation with GitHub Actions Using R and Python
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
API limitations with Python - GitHub Tutorial
From the course: Data Pipeline Automation with GitHub Actions Using R and Python
API limitations with Python
- [Instructor] In the previous video, we saw how we can set a get request to pull data from the API using the IGET function. In this video we'll review the output and explore some of the limitation of the get request. Let's go back to the data frame we pulled during the previous video DF1. Recall the data frame has 5,000 rows or observations and seven variables. Let's use Plotly to plot the data. So we're going to use the plot line function as it says time series. Let's start with the input object, which TF1.data and our X axis is our timestamp, which is period, and our numeric value is the value column. Let's go ahead and run it. And as you can notice in this time sales plot, there are some weird lines that do not fit the serious pattern. We can go ahead and zoom in and and explore it. You can see here that some observations are missings and therefore you get those straight lines in between. So for example, between December 14th, 2018 and Jan 13, 2019, there are no any observation…
Contents
-
-
-
(Locked)
EIA API2m 47s
-
(Locked)
Setting an environment variable3m 22s
-
(Locked)
The EIA API dashboard4m 10s
-
(Locked)
GET request structure5m 41s
-
Querying the data via the browser4m 4s
-
(Locked)
Querying data with R and Python2m 50s
-
(Locked)
Pulling metadata from API with R3m 5s
-
(Locked)
Sending a simple GET request with R5m 19s
-
(Locked)
API limitations with R4m 43s
-
Handling a large data request with R4m 27s
-
Pulling metadata from API with Python3m 47s
-
(Locked)
Sending a simple GET request with Python4m 44s
-
(Locked)
API limitations with Python3m 54s
-
(Locked)
Handling a large data request with Python3m 10s
-
(Locked)
Challenge: Query the API1m 2s
-
(Locked)
Solution: Query the API with R7m 28s
-
(Locked)
Solution: Query the API with Python7m 45s
-
(Locked)
-
-
-
-