Working with APIs in Python (Fred API)

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

ความคิดเห็น • 19

  • @johndolan29
    @johndolan29 ปีที่แล้ว +3

    Thanks for doing this tutorial Michael! Very clear explanations throughout, and a nice intro to python classes. I hope you can create more tutorials like these.

    • @mgcortes31
      @mgcortes31  ปีที่แล้ว

      Thanks! If there’s anything specific you want to see let me know!

  • @abrosaa.official
    @abrosaa.official ปีที่แล้ว

    I really loved how smoothly you explained everything! Thanks

    • @mgcortes31
      @mgcortes31  11 หลายเดือนก่อน

      Thanks! I like explaining things lol, if you have any other topic you'd like covered let me know!

  • @simonchpmnk4392
    @simonchpmnk4392 ปีที่แล้ว +1

    Great content! Keep up the great work! Nice python coding flavor to a Data Science topic. Learned something new about SDKs.
    Topic suggestion: Building on this and put it as a product (maybe with some forecasting) into a Python Dashboard.

  • @SimonVictor
    @SimonVictor 2 ปีที่แล้ว

    I really appreciate this tutorial. Clear and comprehensive!

  • @josephholliman6006
    @josephholliman6006 2 ปีที่แล้ว +1

    I am newer to Python and, as an economist, I am very interested in your data extraction methods. For instance, it appears you are working in Jupyter. I am using Jupyter in the Anaconda suite but the GUI you are using appears different. Could you tell us how you have Jupyter set up? Thanks.

    • @mgcortes31
      @mgcortes31  2 ปีที่แล้ว +1

      Hi Joseph, yes! I am using the VScode editor. You can install the ipython notebook extension.

  • @djCurtisC
    @djCurtisC 2 ปีที่แล้ว

    Really great video - looking forward to future content. Have you done anything with the BLS API (only ask as there is some data not in FRED that needs to be accessed from the source here)? They show some examples using prettytables, but the way you've put everything into a class and then stored the data into a dataframe is much better.

    • @mgcortes31
      @mgcortes31  11 หลายเดือนก่อน

      Thanks for the idea, perhaps I will make a video of this!

  • @moussatraore3903
    @moussatraore3903 ปีที่แล้ว

    Awesome vidéo deserve more views than that!! By the way can you make one for using python and api to retrieve data and analyze them using sql ?

    • @mgcortes31
      @mgcortes31  11 หลายเดือนก่อน

      I can definitely make a SQL tutorial that analyzes data, thanks for the idea!

  • @NileEllis
    @NileEllis ปีที่แล้ว

    How did you get the fred extensions in visual studio code?

    • @mgcortes31
      @mgcortes31  11 หลายเดือนก่อน

      I don't think there were any Fred extensions, I wrote the class myself. I think the intellisense thing within VS code knew what methods I had written already in the class as I was writing it (assuming I'm understanding your question properly).

  • @dddelgado05
    @dddelgado05 10 หลายเดือนก่อน

    Thanks Michael this is very helpful- can you help me with an error: in the block of code with assigning fredpy = FredPy() I am getting the error 'FredPy' object has no attribute url'. I believe I am following everything correctly but unsure of why I am getting this error. The above block of code with the class seems to work fine

    • @mgcortes31
      @mgcortes31  10 หลายเดือนก่อน

      I would probably need to see the code somehow to say definitively. Did you try running each part inside of the failing code block to see what inside the code block exactly is triggering the error?
      The error 'FredPy object has no attribute url' means that you are trying to access the 'url' attribute of the 'FredPy' object but it is not set / doesn't exist. For example, if you didn't define self.url anywhere within the class then if you did fredpy = FredPy() and then tried doing fredpy.url this would trigger the exact issue you are having.
      In your class definition of FredPy did you have the self.url set to something (this should happen in the def __init__(...) method).
      Maybe you can share your code with me via my email michaelgcortes@gmail.com and I can try to take a further look.

    • @dddelgado05
      @dddelgado05 10 หลายเดือนก่อน +1

      @@mgcortes31 Thanks for responding. I spent a bit of time and I think I had made a minor mistake and when i looked at your code in github was able to compare my differences. Thanks again for this video and response, really have some good use for pulling data from FRED. Take care

  • @hebertoalegre1593
    @hebertoalegre1593 ปีที่แล้ว

    I love it!

  • @matiasbg8747
    @matiasbg8747 6 หลายเดือนก่อน

    como seria el archivo json? coloca un ejemplo