Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

Matplotlib Tutorial 9 - converting data from the internet

72.5K views
•
July 11, 2015
by
sentdex
YouTube video player
Matplotlib Tutorial 9 - converting data from the internet

TL;DR

In this tutorial, you will learn how to convert date data using a decoding function and plot price data using Matplotlib in Python.

Transcript

what is going on everybody Welcome to the ninth data visualization with python and matap plot lib tutorial video where we left off we were basically pulling data from the internet we were we got the data we've separated it and we can even unpack it into these variables here but the problem is the date stamp here is a little problematic for us becau... Read More

Key Insights

  • 🧑‍🤝‍🧑 Matplotlib has its own system for converting date stamps, which is different from Unix time.
  • 💁 Python 3 requires a custom decoding function to convert byte strings to readable date formats.
  • ⌛ The plot_date() function in Matplotlib is used to plot time-series data.
  • 🧑‍🤝‍🧑 The appearance of the plot can be enhanced by rotating the dates and making other adjustments.
  • 🧑‍🤝‍🧑 Date stamp conversion is essential for accurate visualization of time-series data.
  • 💁 Matplotlib provides flexibility in zooming and displaying different levels of date information.
  • 🏛️ The decoding process is necessary only for Python 3, as Python 2 had the function built-in.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: Why is date stamp conversion necessary in Python, especially with Matplotlib?

Date stamp conversion is necessary because Matplotlib uses its own conversion system for dates. By converting the date stamp to a readable format, we can effectively plot time-series data.

Q: What is the purpose of the custom decoding function?

The custom decoding function converts byte strings to a string format using UTF-8 encoding. It ensures that the date stamp data can be properly used for plotting.

Q: How can we plot price data using Matplotlib?

To plot price data, we need to use the plot_date() function in Matplotlib. We pass the converted dates as the x-axis values and the corresponding price values as the y-axis values.

Q: How can we improve the appearance of the plot?

To improve the appearance of the plot, we can rotate the dates and make other adjustments, which will be covered in the next tutorial. For now, the price line can be plotted successfully.

Summary & Key Takeaways

  • The tutorial begins with a discussion on the challenges of date stamp conversion in Python, particularly with Matplotlib, which uses its own conversion system.

  • The tutorial introduces a custom decoding function to convert byte strings to a readable date format.

  • The tutorial then demonstrates how to plot price data, using the converted dates and price values.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from sentdex 📚

Python: How to Graph the Chaikin Money Flow Trading Indicator in Matplotlib thumbnail
Python: How to Graph the Chaikin Money Flow Trading Indicator in Matplotlib
sentdex
How to Train a Chatbot Using TensorFlow and Python thumbnail
How to Train a Chatbot Using TensorFlow and Python
sentdex
How to Parse Twitter for Twitter Analysis: Part 1 thumbnail
How to Parse Twitter for Twitter Analysis: Part 1
sentdex
Python: How to Program the Chaikin Money Flow Trading Indicator thumbnail
Python: How to Program the Chaikin Money Flow Trading Indicator
sentdex
Parsing XML - Go Lang Practical Programming Tutorial p.11 thumbnail
Parsing XML - Go Lang Practical Programming Tutorial p.11
sentdex
Python Generator Functions for massive Performance Improvements with Lists thumbnail
Python Generator Functions for massive Performance Improvements with Lists
sentdex

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.