Economic Data Analysis Project with Python Pandas - Data scraping, cleaning and exploration!

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 มิ.ย. 2024
  • In this video kaggle grandmaster Rob Mulla takes you through an economic data analysis project with python pandas. We walk through the process of pulling down the data for different economic indicators, cleaning and joining the data. Using the Fred api you can pull up to date data and compare, analyze and explore.
    Copy and edit the notebook from the tutorial: www.kaggle.com/robikscube/eco...
    Timeline:
    00:00 Intro
    01:05 API Setup
    06:26 Search Economic Indicators
    10:35 Pull Economic Data
    13:37 Joining Indicators
    25:59 Plotting with Plotly
    27:27 Bar Chart of Unemployment
    36:50 Unemployment vs Participation
    Follow me on twitch for live coding streams: / medallionstallion_
    My other videos:
    Speed Up Your Pandas Code: • Make Your Pandas Code ...
    Speed up Pandas Code: • Make Your Pandas Code ...
    Intro to Pandas video: • A Gentle Introduction ...
    Exploratory Data Analysis Video: • Exploratory Data Analy...
    Working with Audio data in Python: • Audio Data Processing ...
    Efficient Pandas Dataframes: • Speed Up Your Pandas D...
    * TH-cam: youtube.com/@robmulla?sub_con...
    * Discord: / discord
    * Twitch: / medallionstallion_
    * Twitter: / rob_mulla
    * Kaggle: www.kaggle.com/robikscube
    #python #pandas #datascience

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

  • @gustavojuantorena
    @gustavojuantorena 2 ปีที่แล้ว +34

    Great conten! I didn't know the "twinx" method. It would be nice if you can make tutorials about advanced data visualization in Python.

    • @robmulla
      @robmulla  2 ปีที่แล้ว +9

      twinx is pretty cool! I didn't learn about it until recently. Advanced python data viz video is a great idea. Thanks for watching!

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

      Can you name a famous real-life project which contributes to the field of economic and statistical analysis?

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

      @@purbitamallick7596 thanks for commenting. Are you asking for a specific project or paper that has been published in the past, or an idea for future research?

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

      @@robmulla I am asking for a specific project

    • @robmulla
      @robmulla  2 ปีที่แล้ว +4

      ​@@purbitamallick7596 www.tandfonline.com/doi/abs/10.1080/00220485.2017.1320607 This article was published "The authors provide step-by-step instructions on how to use FRED to compute the price elasticity of demand for motor vehicle fuels and gasoline" - Hopefully that's what you were looking for.

  • @walterpark8824
    @walterpark8824 ปีที่แล้ว +23

    An inspiring tour de force with a very satisfying outcome. A hundred years ago the data didn’t exist; 25 years ago the data wasn’t in electronic form in one place; 15 years ago it would have taken a team weeks if not months to pull this all together and then format graphs; yesterday I had no idea it could now all be accomplished in much less than an hour. Now I’ll spend the next month or two going through but by bit, learning how to do this with my data. Thanks!

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

      Thanks so much! Data has always existed though! 😀

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

    I've done basic data analysis manually in Excel for a long time, but these tools are insane. Your way of explaining things step by step is going to help me get some of these more modern tools into my toolkit and supercharge my productivity and marketability as I look for my next job.

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

      Can I get a data analysis job by knowing only some excel ?, please let me know

  • @dodgerboi97
    @dodgerboi97 4 หลายเดือนก่อน

    I just want to thank you for what you do. Some people are special in the way they convey information and teach and you just have it. You are going to help me succeed in this field! Keep it up man.

  • @jonbig04
    @jonbig04 11 หลายเดือนก่อน +2

    I've watched A LOT of data science tutorials and these are extremely well done. Thanks for the great content!

    • @robmulla
      @robmulla  11 หลายเดือนก่อน +1

      Hey! Thanks a ton for that feedback. I really appreciate it!

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

    The way you explain the entire walkthrough is just brilliant. You have the skill that many posses but your way is really unique like a statistical anomaly!

  • @BKSDA1
    @BKSDA1 ปีที่แล้ว +8

    Rob you are a legend! This is content worth while ! Thank you for everything you do. I am learning Python for Data Analytics and your tutorials are great! They also apply for beginner level and cover different aspects and ways of using pandas and other libraries. Thank you !

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

      So glad you've found them helpful. 🙏

  • @wilsonsantosmarrola1251
    @wilsonsantosmarrola1251 ปีที่แล้ว +7

    It's great to see how others ppl work. There's always something to learn. In in my case I'm learning everything that you showed in this video. Thank you so much for doing it

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

      Glad you found this video helpful Wilson! 😀 Please consider sharing it with others your think might also learn from it.

  • @Charlay_Charlay
    @Charlay_Charlay 3 หลายเดือนก่อน

    Thank you Rob. This was definitely an interesting walkthrough utilizing Fredapi for data exploration. I took this course to get an idea of what i can do with pandas for data exploration and you definitely delivered. Once again thanks.

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

    This is great! Seems like I learn some new pandas tricks in every one of your videos. Thanks dude!

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

      Never stop learning. I love it!

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

    Great content and pace you did it...particularly like what you did from "plot with plotly" and beyond, the data wrangling. Thanks for sharing.

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

      Thanks Gisele 🙏 Plotly is awesome!

  • @olubunmiadeniji1708
    @olubunmiadeniji1708 ปีที่แล้ว +8

    Wow! This is awesome. I am contemplating doing PhD in Economics and this a great introduction to what I should expect. Thanks for your efforts.

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

      Thanks for the feedback. don’t have a PhD in economics but I’m glad you found this helpful!

  • @Dongnanjie
    @Dongnanjie 4 หลายเดือนก่อน

    Absolutely love it. Thank you Rob!

  • @sjrigatti
    @sjrigatti 9 หลายเดือนก่อน +1

    Wow. Great video. Awesome to see the iterative process you use (and hard to take notes on it, so thanks for the links).

    • @robmulla
      @robmulla  9 หลายเดือนก่อน

      Glad you found it helpful and thanks for watching!

  • @philipomelo
    @philipomelo 7 หลายเดือนก่อน

    Thanks @Rob Mulla, this video is very informative and motivating.

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

    Thank you. I do use a lot of financial data at my work. This is going to help a lot. The visualization techniques are great to adopt!

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

      Glad it was helpful! Matplotlib can be extremely powerful for plotting.

  • @tyroneogarrojr.453
    @tyroneogarrojr.453 11 หลายเดือนก่อน

    Great content and incredibly insightful and transparent

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

    Great Video! I learned a lot of tips and tricks from this analysis!

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

    Awesome content, very helpful for Python learners!

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

    Fascinating stuff man, thank you for this!

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

      Glad you found it helpful

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

    Brilliant content and explanation thanks. Definitely subscribed for more.

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

      Thanks so much!

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

    Dude you're so clean at this. Unbelievable

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

      Glad you liked it! Share with a friend to spread the word 😊

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

    Such amazing content please make more videos like this with new different types of Api I love to watch your 😊❤️

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

      Thanks so much for the feedback! 🙏 Share the video with others you think might enjoy it.

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

    This is very useful, thank you very much!!

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

    Oh Man. Great Tutorial. Thank you.

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

      Glad it was helpful Chizzle! If you can, share it with others you think might learn from it too.

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

    Thank you! This was very informative!

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

      Glad it was helpful!

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

    Splendid 😂, I love how you tell the way to solve the questions

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

      Glad you liked it! I'm trying my best.

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

    Thats a great tutorial. Thank you. Hope you get 100k subscribers.

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

      Glad you found it helpful! 100k is my goal for 2023 😀

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

    Uooh, Amazing skills, such an inspiration for my studies,
    Thanks for the content!

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

      Happy to hear that!

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

    Great work!

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

    Incredible video thanks for the inspiration

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

      Thanks so much for the positive feedback.

  • @sadgasm2810
    @sadgasm2810 3 หลายเดือนก่อน

    only with making a dataframe with the entire unemployment of the US by State, would have taken me at least 5hrs or even more, this is huge help for me and my future projects... you are awesome, please keep up the good content. greetings form Colombia.

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

    Enjoyed.Thank You

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

    this is the data channel that I need

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

      You are the viewer that I need! Thanks so much for watching and giving feedback. Please spread the word to anyone else you think might enjoy my content!

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

    Great video. Thanks for this.

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

      I appreciate that.

  • @m.owaisnaeem7208
    @m.owaisnaeem7208 ปีที่แล้ว +3

    Watching the video on a time when I should be watching some entertainment videos... It's bed time! BTW, this video of yours is going to take a couple of hours of mine, tomorrow... I've to go through it... Line by line, code by code... A couple of new things, which require some practice!

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

    My one of best youtuber love your work rob😍😍,
    Thank u for everthing

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

    Yeah it so cool. I’m appreciated. Hoping next time you make a video of inter market analysis ( such as bond rate of many countries, stock exchanges, commodities price ) to find out why the interactions between them then we can predict something in the future. Thank again ❤❤❤

  • @apostlenoah5663
    @apostlenoah5663 3 หลายเดือนก่อน

    My gee these is great content ever

  • @brandoncyoung
    @brandoncyoung 8 หลายเดือนก่อน

    just commenting for the algo! thanks again for the great vids rob!

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

    TH-cam is the best Free University ever !! Amazing

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

      You can learn a lot of TH-cam for sure.

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

    Excellent, Congratulations

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

      Thank you so much 😀

  • @fudgenuggets405
    @fudgenuggets405 ปีที่แล้ว +17

    For whatever reason I was having issues with setting the max_columns to 500. I had to use:
    pd.set_option("display.max_columns", 500)
    Just putting it out there in case someone else gets an error about "Pandas matched multiple keys".

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

      Thank you

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

      Same

    • @anthonyhartshorn1187
      @anthonyhartshorn1187 8 หลายเดือนก่อน

      You legend, thanks :)

    • @rogelios.
      @rogelios. 7 หลายเดือนก่อน

      Thank you, I was so confused 😅

    • @jamesb-yj9cc
      @jamesb-yj9cc 2 หลายเดือนก่อน

      thanks!

  • @Dubai_life_
    @Dubai_life_ 5 หลายเดือนก่อน

    Thank you😊

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

    Excellent video, lucky to learn from a tutor like you.. as a beginner learnt using various data structures that too within a project.. keep doing great work!
    Participation Rate dataset seems like upgraded, so have to include:
    partiRate_df = partiRate_df.loc[partiRate_df['title'].str.contains('Labor Force Participation Rate for')]
    only then getting shape as 51x15

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

      Glad it was helpful! Not sure about that situation.

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

    Wow great content, 43:35 voila, so neat and aesthetic images. I fell in love with Python, I was scrolling TH-cam , wow .

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

      Glad you liked the video!

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

    Thanks!

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

    Very helpful.

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

      Thank you for watching!

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

    Hi, thanks for this great video.

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

      Thank YOU for watching mehdi.

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

    you are absolutely awesome bro👍

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

      Thank you so much 😀

  • @alfredoch3811
    @alfredoch3811 ปีที่แล้ว +21

    Another AWESOME video, man!!! Can't get enough of these, keep it up!
    By the way, if anyone else is having an error with pd.set_option('max_columns', 500), I solved it by changing it to pd.set_option('display.max_columns', 500). I think this may be related to what version of Pandas you have installed...

    • @robmulla
      @robmulla  ปีที่แล้ว +7

      Yes. Good catch. That fixes it with newer pandas. thanks for watching!

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

      Thank you so much . Was worried i could not follow along with the lesson when the error pop up.

    • @HimanshuSharma-oi2fj
      @HimanshuSharma-oi2fj 2 หลายเดือนก่อน

      I am getting an error -- no module named kaggle_secrets ... I searched about it failed to resolve it and run thee code ... plz help

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

    Very good content. Download !!!

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

      Glad you liked it. Thanks for watching. 🙂

  • @santiagogonzalez-hc1vp
    @santiagogonzalez-hc1vp ปีที่แล้ว +1

    Great vid !!!

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

      I appreciate that!

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

    Excellent video. Thank you. Before the last cell I added
    uemp_states = uemp_states.reindex(sorted(uemp_states.columns), axis=1)
    so that the states would show up in alphabetical order.

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

      Nice work! Thanks for sharing, that's a good trick.

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

    Just found this channel. Subscribed

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

      Thanks for supporting! Tell your friends. 😊

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

    Using this and data like this to work on a QoL assessment across different countries! It really exposed me to new data and gave me a good headstart. I've made a few choropleth maps for the first time! Granted, not with my own geojson coords, but with the prebuilt countries & states. Still exciting though! Thanks!

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

      Wow, that sounds like a really cool project. You should share it here or on twitter when you are done. I'd love to see what you did. Thanks for watching!

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

    Thank you. Another great tutorial. I enjoyed watching you fix matplotlib, the most. Couldn't that have been easier with plotly?

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

      Glad it was helpful! I typically like using matplotlib if the plot is static and plotly or bokeh if the plot is interactive. I'm not sure if plotly would've been easier, but if you want to give it a shot and share the kaggle notebook I'd love to see it!

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

    Great video. At about 40:00 when you loop over the states to plot for each og them, you introduce an index that you increment manually. This can be avoided with the built in function enumerate().

    • @robmulla
      @robmulla  ปีที่แล้ว +5

      Good point! I actually made a short about enumerate, and I don't use it myself when I should. 😂

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

    Thanks so much Rob. Do you have a video on how you make your computer+software setup that you use to make these videos? Seeing you PiP with other windows + the live coding is amazingly useful. Thanks again and hope alls well.

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

      Thanks for watching Peter. I've talked about my setup on stream before but maybe it would be a good idea to make an official video about it. I use conda for environments and pip for python packages. Running ubuntu with jupyterlab and vscode as my main IDEs but also love VIM.

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

    I am *1k* th like 😃
    I love learning Pandas.
    Thanks for video like these.

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

      So glad you are number 1k! Let’s make it 10k 😝

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

    Thank you. Particularly enjoyed the last big matrix plot you made, very useful. A little curious and as coninuation to what you did, would it be possible to share y scales, both primary and secondary y axis, through out all the plots you made? Noticed you used the option sharex=True, but one can't use e.g. sharey on the secondary y axis as far as i understand. Any quick solution to achieve that? Relevant if one want to easily compare across the States at the same time (my reason for asking).

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

    I love yout videos

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

      Thanks for watching!

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

    Nice video. I am curious how come you didn't use the pandas SQL commands?

  • @AD-io4tp
    @AD-io4tp ปีที่แล้ว

    Hey Rob! A bit unrelated, and I'm sure you get this question a ton, but how do you start out with Kaggle? I did the introductory and intermediate ML tutorials on Kaggle, but EDAs, non-tabular data, feature engineering, etc. seem incredibly unapproachable, and I'm not sure how I should go about learning them. In general, how should I go about improving my Kaggle skills? And how do Kaggle skills translate to real world ML jobs?

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

    This is fascinating! Hen do you decide which tool to use? Your work here is like 10 minutes in excel .

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

    Great content!!!!
    Any videos or content on how to setting up the Kaggle workspace like the link to functions and call out variable used above?
    Thanks.

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

      Glad you enjoyed the video. Are you asking if there are any videos about how to setup a workspace locally similar to a kaggle notebook? If so I do discuss it in my jupyter notebook tutorial. Sorry if that doesn't answer your question.

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

      @@robmulla hi, in Kaggle notebook. I tried to follow along, I didn’t see the function available for fred as u show, also in kaggle notebook, the variable input could not be repeated for next cell. Any short cut and set up will definitely helps. Thanks.

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

    Nice data analysis video! Nomally the data contains not only the states, but also other metrics e.g. age periods etc. However if you wanna plot the states only (there are 51), do you set gridsize = (11, 5) and the last four cells will be empty since we iterate 51 times, or there is a clever way telling Matplotlib to display 10 x 5 grid of states and the 51th leave it alone right below the grid on the same plot?

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

      Good question. I believe it’s possible but it typically just use an even spaced grid. It’d need a drawing to see exactly what you mean.

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

    Thanks again for this video. Do you know if Fred has some time limitation when it comes to downloading the data? Sometimes it gives a run time error when downloading a lot of data at once.
    Also here’s a one-liner version of getting the data and concatenating.
    all_results = pd.concat([fred.get_series(myid).to_frame(myid) for myid in unemp_df.index],axis=1)
    Love Python’s simplicity!
    Thanks

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

      It could have a timeout if you hit it too many times. You may need to make it a loop and add a sleep for a second every iteration. Good luck.

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

    This is an awesome video. Would be really cool to see the trend of stock market with rising interest rates.

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

      Thanks Jackson. That's a great idea to look at stocks vs interest rate. I'd need to check if that's available through FRED or maybe I'd need to pull it from somewhere else.

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

    Hi Medallion. is this visual studio or jupyter notebook application your using?

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

      Thanks for the question George. In this video Im working in a Kaggle notebook. I have a different video on jupyter notebooks that discusses the differences between this and a notebook. Also I have a link to this notebook and code in the video description.

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

    Great video as always 😃. I'm wondering at 32:06 if we can use " rename() " method and pass it the dict you just created. like uemp_states.rename(columns=id_to_state)

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

      Thanks! I think rename can take a dictionary. That's a good point.

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

    hi thanks for the great video. i have a question about the first column with dates. it's currently there as index and has no column title, i wonder how i can use that column to filter for rows that are after the year 1978. i tried to reset_index or call the ignore_index=true in pd.concat, but both resulted an error. appreciate any tips you can provide.

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

      I think that is a series and not a dataframe. Reset index without ignoring the index would make it into a data frame. Check my intro to pandas video where I cover it in detail. Good luck!

  • @AlexMar-r
    @AlexMar-r 11 หลายเดือนก่อน

    Hey man Love your tuts , Question .. i have already researched and tried all kinds of codes to Display the full data of columns and rows and nothing works . i'm working on VSC(jupyterNotebook), i get this error ,"AttributeError: 'DataFrame' object has no attribute 'set_option'". im annoyed .

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

    GOAT

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

      GOAT = Guy On API for Time-series?

  • @user-cq7cj9mg5b
    @user-cq7cj9mg5b 5 หลายเดือนก่อน

    I cant see the doc information when i press shift tab, or hover over the fred object. How can i fix this?

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

    I just stumbled upon your video and channel. Thank you for this one.. I am on windows machine and 'pip install fredapi > /dev/null' doesn't seem to work instead 'pip install fredapi' works with all the output and other one was 'pd.set_option('max_columns', 500)' doesn't seem to work, instead 'pd.set_option('display.max_columns', 500)' works on my jupyer notebook. Any suggestions what's wrong

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

      Hey Tridib. Glad you enjoyed the video. The >/dev/null will only work on a linux based machine, it just supresses the output so it's ok to exclude it. I believe the max_columns setting has changed for the latest version of pandas so the way you are doing it is correct. Hope that helps!

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

    Having a hard time installing the FredAPI - any thoughts as to why? Kaggle won't connect to it over the internet.

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

      Is the issue not even being able to install the python api? That doesn't seem that it should happen. I'm not sure if they changed something recently but will let you know.

  • @paradigmlab9586
    @paradigmlab9586 7 หลายเดือนก่อน

    Just a little bit of constructive criticizm: when something doesn't work like using the strip method in string manipulation, where you end up doing things in a different, better way, please explain a bit about why it didn't work.

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

    Thank you very much for this tutorial we learned a lot!! But I have a question is it "OK" to scraping the website I mean in a legal way cause I want to put something similar in my resume but I wonder if it is okay with this method

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

      I’m not able to give legal advice, but I haven’t had any issues with scraping sites yet.

  • @BPJennieYeager
    @BPJennieYeager 4 หลายเดือนก่อน

    4:14 it should be "pd.set_option('display.max_columns', 500)"

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

    Very nice, what about comparing state unemployment to national rate? And maybe some forecast?

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

      Thanks. Good ideas. I’ll see what I can do.

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

    Hello Rob,
    when I run the code: fred.search('S&P')
    then I am getting value error. I try many way but can't solve the error.please help
    ValueError: Bad Request. The value for variable api_key is not a 32 character alpha-numeric lower-case string.

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

    Thanks for an awesome video! How do you comment multilines in one go?

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

      Thanks for the feedback. I'm not sure what you mean by "in one go" but you can add multiline comments with tripple quotes """. Or if you mean split lines for code you can add a backslash like this \
      Hope that helps.

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

      @@robmulla Thank you very much for the information! I finally got answer from Kaggle : ctrl + /

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

    Thanks for sharing, I only had problems with the state names, because to me they appeared with Numbers(0,1,2,3...), and couldn´t manipulate since the "title.replace function". Thanks again.

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

      That's interesting. Maybe the FREDapi changed? I'll have to look into it. There must be some mapping. Can you share a notebook with the issue?

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

    The data in the unemployment dataframe seems to have changed quite a bit... I'm doing some successful troubleshooting, but it's taking me a while... Can you do a video on how to change the different .drop functions to work with the updated data? Thanks!

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

      Thanks for letting me know. I’m surprised to hear it changed. Any chance you know what the format difference is? It should be the same for older dates. Let me know if you happen to find a solution and hopefully I’ll have time soon to look into it.

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

      Had a similar problem, and came to this solution:
      # Concat as in the video, but don't perform the drop yet
      uemp_results = pd.concat(all_results, axis=1)
      #then create a function to iterate over all column titles and add them to a list if they are over 4 char. long
      cols_to_drop = []
      for i in uemp_results:
      if len(i) > 4:
      cols_to_drop.append(i)
      #Then drop those cols.
      uemp_results = uemp_results.drop(columns = cols_to_drop, axis=1)

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

      @@pizzpie09 Hell Yea! Thank you

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

    You could have used enumerate to index the loop while counting the states. But either way I loved it. Been almost 12 years that I worked on financial data and I am now eager to get back. Drop me a line in the private mode and maybe we can collaborate.

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

      You are correct. I'm a noob when it comes to using enumerate sometimes, and I even have a video about it!

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

      @@robmulla it’s fun, maybe I will share a colab notebook with deep learning and shat that with you. I hate making presentations. And tutorials.I hate autocorrect. Always changes scientific on engineering terms. Sorry for writing colander instead of colab. I edited now when I noticed it.

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

      Share and shat seem to be the same on iOS. Make life hell.

  • @dhirajsharma1475
    @dhirajsharma1475 2 หลายเดือนก่อน

    in !pip install fredapi is showing error
    ERROR: Could not find a version that satisfies the requirement fredapi (from versions: none)
    ERROR: No matching distribution found for fredapi

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

    Many Thanks!!
    I ran all on Kaggle perfectly till when i tried plotting with ploty [ px.line(uemp_states) ]. I had this value Error [ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().] any idea why and what I should try?

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

      Thanks for the feedback. The notebook on kaggle actually needs to be updated for a few API changes. Someone put a comment on the notebook with the changes they made to get it working. I'll try to update it with those changes.

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

      I updated the notebook and the latest version fixed the issues with the data causing it to not run end-to-end. It looks like they may have removed April 2020 from the unemployment dataset. Not sure why. Good luck.

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

      @@robmulla works well! Thank you and keep the great content coming!

  • @user-jn1zq5wr4n
    @user-jn1zq5wr4n 5 หลายเดือนก่อน

    I need to find ESG score, what can I use?

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

    hey, i tried running the same codes on google collaboratory and it shows an error after about every 3-4 blocks of code. is there any way i can prevent this- any packages i need to install? or is it just advisable to download Python for DS? also looking for safe websites where i can download it from!

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

      Hey Varun. Sorry to hear you are having problems running it. Did you create your own API key from the website and change the code to take your key? It won’t work unless you do that.

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

    9:40 If limit=1000 and sort_order='popularity', do you get the top 1000 sorted by popularity or the first 1000 sorted by popularity?

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

      That's a great question. I believe it's the former (get top 1000 then sort) but I'd have to read the docs/code to know for sure. Let me know if you find out.

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

      @@robmulla You are correct. I finally had a chance to play with this. As long as you include the "order_by='popularity'," you get the N most popular datasets. If you set "limit=100," you get a minimum popularity of 24 . If you then leave out the order_by, you get a different list, with 66 differences and a min popularity of 1.

  • @lienvu217
    @lienvu217 9 หลายเดือนก่อน +1

    I've tried to code as your guide on your TH-cam channel Jupyter Notebook but it showed an error like this "
    ModuleNotFoundError: No module named 'fredapi'", how can I fix it. tksROb

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

      only use this code: !pip install fredapi

  • @dodgerboi97
    @dodgerboi97 4 หลายเดือนก่อน

    When I try to install Fred api on kaggle it just doesn’t work , any ideas

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

    what's the difference between the filter variable in fred.search() and df.query()?

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

      One is filtering after the data is pulled from FRED. The filter in search I believe is run on the server side.

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

      @@robmulla thank you sir

  • @baokhahoang9965
    @baokhahoang9965 2 หลายเดือนก่อน

    any one has the link of data he has? I cant found it on Fred website

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

    Can I ask if I have low quantitative reasoning ( bad with algebra..) but good with spatial reasoning can I become Data Analyst ?

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

      That’s a good question and I don’t have a perfect answer. What I will say is that we all have our strengths and weaknesses. The key is to not let them define us. Play to your strengths and strive to grow in your weaknesses. If you really have a desire to become a data analyst then I’m 100% certain you can become one. It will require effort but you can do it!

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

      @@robmulla Thank you. But what about you, do you think yourself good at quantitative or with spatial ?

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

    Can you please make the video content on credit risk modeling...

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

    Hi there, when I do fred.search('S&P'), I get error: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren' - how do I solve this?

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

    May I know what IDE are you using, please? Thank you.

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

      I’m using a jupyter notebook. Checkout my video tutorial on it I go into a lot of detail.

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

    How do I label the left and right y axis?

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

      Ax.set_ylabel() ?