CARVIEW |
Select Language
HTTP/2 200
date: Wed, 30 Jul 2025 12:33:59 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"13df8fcb20eeb4ddf971cb6ac7ec6c84"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=BVjDm3kGOx42Vr57QKjkITY5MLp9ChH%2B0SQp72T9AB3os1rVkWgQFaPHxQJXC%2BlV%2Fc%2FeYL6FGp%2FQ%2FoC27K%2BpwOXpCx%2BgY1fdb23REFGPt%2FsdOMbiqmBqhsAQXNlZPvh8RqTzqeuch35lZqEczZJJuY%2FIm2iGDxCKq81gfqx6O0j3uHPsTHZIJvMdhmOW1UCSp2E1%2FEWcKXrjzl3bqDU7IRlz5FiR9vWBeAvHiZMnoqBqrlhlWcSIkIqgy1eiQdw9IOWllW633h%2FtIT3flvwC5g%3D%3D--lX1mIqnnip62eowz--DgJenrfMdDZlJHLC4IHAZQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.937090871.1753878838; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 12:33:58 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 12:33:58 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 83E6:10FE2:A803C2:C7ECF4:688A1136
A variety of examples for eiapy · GitHub
Show Gist options
Save systemcatch/019cf50302093b9b51838c62b99623df to your computer and use it in GitHub Desktop.
{{ message }}
Instantly share code, notes, and snippets.
Last active
October 2, 2018 15:33
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save systemcatch/019cf50302093b9b51838c62b99623df to your computer and use it in GitHub Desktop.
A variety of examples for eiapy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find 5 years of data for Federal oil & gas production in the Gulf of Mexico. | |
gulf_category = Category(296728).get_info() | |
# Find all child series and make a list of them. | |
gulf_childseries = gulf_category['category']['childseries'] | |
gulf_series_ids = [i['series_id'] for i in gulf_childseries] | |
data = MultiSeries(gulf_series_ids).last(5) | |
{'request': {'command': 'series', | |
'series_id': 'PET.RCRR10R3FM_1.A;PET.RCRR71R3FM_1.A;PET.RCRR72R3FM_1.A;PET.RCRR73R3FM_4.A;PET.RL2R10R3FM_1.A;PET.RL2R57R3FM_1.A;PET.RL2R71R3FM_1.A;PET.RL2R72R3FM_1.A;PET.RL2R73R3FM_4.A;PET.RL2R9901R3FM_1.A;PET.RL2R9902R3FM_4.A;PET.RL2R99R3FM_1.A;PET.RNGR20R3FM_1.A;PET.RNGR30R3FM_1.A;PET.RNGR78R3FM_1.A;PET.RNGR79R3FM_1.A;PET.RNGR80R3FM_4.A;PET.RNGR86R3FM_1.A;PET.RNGR87R3FM_1.A;PET.RNGR88R3FM_4.A'}, | |
'series': [{'copyright': 'None', | |
'data': [['2007', 414], | |
['2006', 406], | |
['2005', 409], | |
['2004', 467], | |
['2003', 485]], | |
'description': 'Gulf of Mexico Federal Offshore Crude Oil ' | |
'Production', | |
'end': '2007', | |
'f': 'A', | |
'name': 'Gulf of Mexico Federal Offshore Crude Oil Production, ' | |
'Annual', | |
'series_id': 'PET.RCRR10R3FM_1.A', | |
'source': 'EIA, U.S. Energy Information Administration', | |
'start': '1992', | |
'units': 'Million Barrels', | |
'unitsshort': 'MMbbl', | |
'updated': '2014-10-16T15:14:01-0400'}, | |
{'copyright': 'None', | |
'data': [['2007', 313], | |
['2006', 318], | |
['2005', 305], | |
['2004', 310], | |
['2003', 336]], | |
'description': 'Gulf of Mexico Federal Offshore Crude Oil ' | |
'Production from Greater than 200 Meters Deep', | |
'end': '2007', | |
'f': 'A', | |
'name': 'Gulf of Mexico Federal Offshore Crude Oil Production ' | |
'from Greater than 200 Meters Deep, Annual', | |
'series_id': 'PET.RCRR71R3FM_1.A', | |
'source': 'EIA, U.S. Energy Information Administration', | |
'start': '1992', | |
'units': 'Million Barrels', | |
'unitsshort': 'MMbbl', | |
'updated': '2014-10-16T15:14:01-0400'}, # snipped for readability | |
############################################## | |
# Check electrical demand in New York on the 4th of July, Thanksgiving & Christmas in the evening. | |
demand_by_hour = Series('EBA.NYIS-ALL.D.H') | |
# just return the data | |
indep = demand_by_hour.get_data(start='20170704T17Z', end='20170704T23Z')['series'][0]['data'] | |
thanks = demand_by_hour.get_data(start='20171123T17Z', end='20171123T23Z')['series'][0]['data'] | |
xmas = demand_by_hour.get_data(start='20171225T17Z', end='20171225T23Z')['series'][0]['data'] | |
([['20170704T23Z', 21792], | |
['20170704T22Z', 22007], | |
['20170704T21Z', 22004], | |
['20170704T20Z', 21754], | |
['20170704T19Z', 21403], | |
['20170704T18Z', 21009], | |
['20170704T17Z', 20601]], | |
[['20171123T23Z', 17006], | |
['20171123T22Z', 16702], | |
['20171123T21Z', 16459], | |
['20171123T20Z', 16637], | |
['20171123T19Z', 16949], | |
['20171123T18Z', 17258], | |
['20171123T17Z', 17354]], | |
[['20171225T23Z', 19076], | |
['20171225T22Z', 18193], | |
['20171225T21Z', 17513], | |
['20171225T20Z', 17379], | |
['20171225T19Z', 17382], | |
['20171225T18Z', 17532], | |
['20171225T17Z', 17526]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can’t perform that action at this time.