Create Time Series Animations in Python with Matplotlib! (Line Graphs)

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 2025
  • In this video, we're speed-running the creation of an animated line graph visualization comparing AMD, Intel, and Nvidia stock prices over time using Python and matplotlib! We'll go from raw data to a polished animation in minutes, utilizing AI assistance from Claude to help accelerate our development. You'll see how to load and process stock data, create dynamic visualizations with moving price labels, and export the final result as both MP4 and GIF formats. Whether you're interested in data visualization, financial analysis, or just want to see how AI can help speed up coding workflows, this tutorial has something for you! All the code is available in the description below. Let's dive in!
    Link to Code:
    github.com/Kei...
    Check out the other video on bar chart races!
    • Create Time Series Ani...
    #python #matplotlib #datavisualization
    Music by Dyce:
    www.instagram....
    -------------------------
    Follow me on social media!
    Instagram | / keithgalli
    Twitter | / keithgalli
    TikTok | / keithgalli
    -------------------------
    Learn data skills with hands-on exercises & tutorials at Datacamp!
    datacamp.pxf.i...
    Practice your Python Pandas data science skills with problems on StrataScratch!
    stratascratch....
    Join the Python Army to get access to perks!
    TH-cam - / @keithgalli
    Patreon - / keithgalli
    *I use affiliate links on the products that I recommend. I may earn a purchase commission or a referral bonus from the usage of these links.

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

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

    It's great that you start projects with the command line. You make it look so simple. I usually do it using the graphical interface, but I want to get used to using the terminal more. Once again, the video is super useful.
    You know it's good you show that you use AI to your advantage.

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

      Thanks for the kind words! The command line is very powerful & quick if you can get more comfortable with it.
      Regarding AI tools, it's definitely a balance. You need to understand the language & libraries you're using and have a feel for what good code looks like, but if AI can help speed up your process to build something than I say take advantage of it. I do understand companies though that prohibit it during interviews.

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

      @@KeithGalli I totally agree. You have to understand the code. There are people who use AI just by copying code but they don't understand it. Thank you for taking the time to respond and make such useful videos.

  • @jadafrancis-q2o
    @jadafrancis-q2o 2 หลายเดือนก่อน +3

    i have gained a lot from your videos. keep it up

  • @JimRohn-u8c
    @JimRohn-u8c 2 หลายเดือนก่อน +7

    Please make a series on data visualization, dashboards, etc. using all the python data viz libraries!

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

      Will try to post more on this front! One video I recommend you check out is the course I posted on Shiny: th-cam.com/video/5LG4KffeCgg/w-d-xo.htmlsi=UAmwufsGZz7Dr61H

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

    That was amazing

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

    it was a boom project Keith🔥🔥

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

      Haha thank you!! Glad it was not a doom project

  • @garyphan-lo4vi
    @garyphan-lo4vi 2 หลายเดือนก่อน

    keith changed my life wow

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

      My man 💪🙏💯

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

    SUPERB!!!

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

    Also another idea for you is to revisit old projects and ask AI to revise and optimise the code. I'm always amazed at the results but, I am not at your Python level even though I got some complicated projects done with a lot of back and forth between stackoverflow and my hurdles back in the day...now how could you even go back!

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

    Baller

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

    haha thats funny, I was about to ask myself "why not just ask a AI how to do it?" and then you switched to claude :)

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

    Hi Keith, thank you for sharing, could you please teach is how to build Animated Bubble Chart?

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

      Do you have an example of what you're thinking?

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

      @@KeithGalli yep:
      1. th-cam.com/video/SOll5HzVwpo/w-d-xo.html
      2. th-cam.com/video/rotW1aCL_5s/w-d-xo.html
      3. th-cam.com/video/VO0lvE1q0N0/w-d-xo.html

  • @thecriminal87
    @thecriminal87 วันที่ผ่านมา

    why does it feels like watching a speed run?

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

    I always learn a lot from watching your videos, you know? According to what you ask at the end of your video. It would be very helpful and I would like you to watch an example working with Big Data. Especially extracting and doing calculations or statistical analysis on large volumes of data, when it is not possible to download or transform to CSV format. I usually do large calculations in POStgres but how should I proceed? What are the good practices and the steps of actions?. I have to do it at work but it is still difficult for me because I don't have a clear order in the steps to follow. Thanks in advance . Chao!!

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

    What do you have against Command + Tab? Seeing you hit Command + Space and type in visua... chrome...

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

    in your next video I would like you to display its data in powerbi.

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

    Thanks and I have a question. How do you do this in VS code that code gets suggested automatically as you type ?

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

      I'm activated/paying for Github Copilot. It is an extension that you can download in VS code. If you want a similar free option, I recommend checking out Codeium Extension in VS Code. Let me know if you need more details on setup!

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

    Not sure if it's possible or not but try making bar chart animation with circular photos at the end for something like country by GDP over years

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

      Do you have an example of this by any chance?

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

    Damn Claude blocking our country number 😅😅 but yeah that's pretty cool!

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

      Meaning Claude isn't accessible in your country?? Have you tried using a VPN and accessing it that way?

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

      @@KeithGalli oh forgot the comment 😅 works fine now! used a different number. initial number i use turns out to be blocked by Claude, perhaps some mistakenly used it!