mortada / fredapi

Python API for FRED (Federal Reserve Economic Data) and ALFRED (Archival FRED)
Apache License 2.0
902 stars 159 forks source link

Percentage change from a year ago #44

Open chungs123 opened 2 years ago

chungs123 commented 2 years ago

How do I get the api to give me data that has been adjusted to "percentage change from a year ago"? for example: https://fred.stlouisfed.org/series/GDP ? thank you

jackmoody11 commented 1 year ago

You can use pandas pct_change method on the data frame that is returned.