Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add PCE (Personal Consumption Expenditures) reports to Economy #6578

Merged
merged 4 commits into from
Jul 11, 2024

Conversation

deeleeramone
Copy link
Contributor

@deeleeramone deeleeramone commented Jul 10, 2024

  1. Why?:

    • PCE is the Federal Reserve's preferred inflation index, and is a key component in the Board's interest rate policy.
  2. What?:

    • Data is from FRED.
    • obb.economy.pce()
    • The results can be turned to look exactly as they do in the release tables: https://fred.stlouisfed.org/release?rid=54
    • Each date and category is one API call, the example below calls the default, "personal_income".
  3. Impact:

    • More data to maintain
  4. Testing Done:

    • Unit/integration
from openbb import obb
data = obb.economy.pce(date="2024-05-01,2023-05-01,2024-04-01")
df = data.to_df(index=None).pivot(columns="date", index=["line", "level", "element_id", "parent_id", "children", "symbol", "name", "units"], values="value")
df = df[df.columns[::-1]]

df

Screenshot 2024-07-10 at 1 58 41 PM

  1. Reviewer Notes (optional):

    • If running all economy integration tests, FRED will cause your API key to get rate-limited and you will be timed out for several minutes.

@deeleeramone deeleeramone added enhancement Enhancement platform OpenBB Platform v4 PRs for v4 labels Jul 10, 2024
@deeleeramone deeleeramone requested a review from IgorWounds July 10, 2024 20:19
@IgorWounds IgorWounds added this pull request to the merge queue Jul 11, 2024
Merged via the queue into develop with commit 0c601d2 Jul 11, 2024
10 checks passed
@IgorWounds IgorWounds deleted the feature/pce branch July 13, 2024 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking_change enhancement Enhancement platform OpenBB Platform v4 PRs for v4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants