You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,9 +40,12 @@ EIA_TOKEN=YOUR_TOKEN_HERE
40
40
```
41
41
42
42
Lets look at an example of how to get the *EIA Natural Gas Futures*.
43
+
You can use the simpler v1 API method where you only need to pass the `series_id` or you can use the newer v2 API method where you need to pass the `route`, `series`, and `frequency`.
43
44
44
45
```python
45
-
df = eia.get_data(
46
+
df = eia.get_series(series_id="NG.RNGC1.D")
47
+
48
+
df = eia.get_series_via_route(
46
49
route="natural-gas/pri/fut",
47
50
series="RNGC1",
48
51
frequency="daily",
@@ -66,7 +69,9 @@ Date
66
69
Lets look at another example the *Total OPEC Petroleum Supply* where the facet is available as `seriesId`. By Default it is set as `series` but we can define the facet as `seriesId`.
0 commit comments