Plotly Interactive Plots as Pandas Plotting Backend df.plot()
Skills:
Data Literacy90%
Key Takeaways
Sets up Plotly interactive plots as Pandas plotting backend using df.plot()
Full Transcript
hey friends welcome to one little coder in this video this is going to be actually a very short video we're going to learn how to set up your plotly interactive visualization as your pandas back-end so by default let's first see when you make a plot using pandas it's going to use matplotlib as the default backend so let's see let's try to make a small plot so let's create um dataframe from a dictionary and let's call it a is equal to one two three one to four okay whatever and b is equal to three four a five okay and now your data frame must be ready at this point okay okay pd.dataframe i missed the capital f so your data frame is ready and when you say df your data frame is going to display and when you say df.plot um and you when you execute it you're going to get a matplotlib based plot so you got a static plot right but the advantage of using plotly is that you get interactive plot and that is a reality with plotly 4.8 new version where you can use plotly as the pandas plotting library backend it is possible because of the new feature that they have released with plotly express it in fact uses plotly express plotly expresses a lighter version of plotly which we have already discussed in another video which i'll just connect in the description section and the latest feature of plotly express is that plotly express now supports white data so if you're not familiar with that so usually long data looks like this it's also called as tidy data and white data looks like this where you've got bunch of column names then all the column names repeating as individual rows so now plotly express supports this because plotly express supports this they could make it possible that now simply invoking the dot plot function you can actually make a plotly plot rather than having a matplotlib so the way you have to do it is first you have to upgrade your plotly so wherever you have your um python interpreter so please make sure that you have the latest version of plotly 4.8 so use hyphen u plotly and it will install the latest version of plotly and then once you invoke pandas let's import pandas as pd and then you say okay pd dot back end sorry pd dot options dot plotting back end is equal to plotly so when you give this at this point you have told plot pandas that you want to use the back end of plotly and not matplotlib so we'll keep this cell as it is and we'll just draw dot df dot plot so df as you can see it's a simple data frame and then you can see that it has made a plotly plot which is interactive so you can zoom you can zoom out you can pan you can do everything that you do with a simple plotly plot with a single function that is dot plot which is very handy when you are actually working with uh pandas data frame directly and you want to do a some sort of eda or you want to just do a very basic exploration so this is very handy and it doesn't take a lot of effort just you have to update your plotly and then use plotly as your backend let's say sometimes you don't want to do this right so you don't want a heavy javascript or visualization always on your notebook because you might want to share it and you don't want to mbr files if you want it to be back you don't want plotly and you want the old matplotlib backend you can say matplotlib as a backend and then you can run the same thing and you would get matplotlib so it's it's as simple as that use your main uh function as main execute statement that you have to execute is dot pd.options.plotlink. end and you decide what you want and please make sure that you have got the latest version of plotly which is plotly 4.8 it's already available on pi by so you can simply use pip install and read more about their announcement what are all changes that they have brought and you can see a few examples of how you can use wide data and then make plotly express plots and you can also see how what kind of plots that uh dot plot from pandas can bring it for you so this is a very short video and i wanted to be short because i wanted to introduce this new facility so i hope this video was helpful for you and if you have any comments please let me know in the comment section and until that next video i'll see you see you bye
Original Description
The latest version of plotly library 4.8 allows you to use plotly as your pandas (df.plot()) backend (the default uses matplotlib)
This video demonstrates how you can do that - simply with
pd.options.plotting.backend = 'plotly' and briefly touches upon the new feature for Plotly Express using Wide -data and Mixed data.
Code: https://github.com/amrrs/youtube-r-snippets/blob/master/Plotly_as_Pandas_Plotting_Library.ipynb
Plotly 4.8 announcement regarding Plotly Express and Pandas backend: https://community.plotly.com/t/announcing-plotly-py-4-8-plotly-express-support-for-wide-and-mixed-form-data-plus-a-pandas-backend/40048
Plotly Express Introduction - https://www.youtube.com/watch?v=QdqFZMQVCw4
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from 1littlecoder · 1littlecoder · 35 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
▶
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
How to create your Free Data Science Blog on Github with Fastpages from Fastai
1littlecoder
Making Interactive Matplotlib Plots for Data Science Visualizations on Jupyter (Python)
1littlecoder
Create your first Data Science Web App using R Shiny
1littlecoder
How to create a Reproducible Example in R using reprex
1littlecoder
No Code Visualization using esquisse with Tableau-like Drag and Drop GUI in R
1littlecoder
Scrape HTML Table using rvest and Process them for insights using tidyverse in R
1littlecoder
Google Teachable Machine Learning Build No Code AI solution
1littlecoder
Create meaningful fake tidy datasets in R using fakir [#rstats Package]
1littlecoder
How to enable using R Programming with Visual Studio VS Code
1littlecoder
Python, Community, Books - with Abhiram R - Bangpypers Co-organizers | 1littlecoder podcast
1littlecoder
Growing a Tech Community across India - Anubha Maneshwar, Founder Girlscript | 1littlecoder Podcast
1littlecoder
Intro to Google Colab - How to use Colab
1littlecoder
Intro to Plotly Express - Complex Interactive Charts with One-Line of Python Code
1littlecoder
Indic NLP Python Toolkit Open Source Development - iNLTK Creator Gaurav Arora | 1littlecoder Podcast
1littlecoder
Do you want a career in Data Science - Tamil Webinar
1littlecoder
Android Smartphone Analysis in R [Live Coding Screencast]
1littlecoder
Programmatically create Images, Memes, Watermarks using Python with imgmaker
1littlecoder
Kaggle Walkthrough to get you started with Data Science - Webinar
1littlecoder
Community, Corporate Job, Coding - Gnana Lakshmi T C aka Gyan, WomenWhoCode Leadership Fellow
1littlecoder
Easy ggplot2 Theme Customization with {ggeasy} | Data Visualization in R
1littlecoder
Excel to R - Pivot + Bar Chart in Excel & R using tidyverse [Live Coding]
1littlecoder
Excel to R #2 - VLOOKUP in Excel to LEFT_JOIN, MERGE in R
1littlecoder
5 websites to get Free Real-World Datasets for Data Science/ML Projects
1littlecoder
Excel to R #3 - APPROXIMATE VLOOKUP in Excel to FUZZY LEFT_JOIN in R
1littlecoder
Correlation-alternative PPS (Predictive Power Score) Python Package Demo
1littlecoder
Automated Website Screenshots in R using {webshot}
1littlecoder
Installing Custom RStudio Theme (Synthwave85)
1littlecoder
Analyse Google Trends Search Data in R using {gtrendsR}
1littlecoder
3 Tips to ask question on Stack Overflow the right way to get answers
1littlecoder
Learn Data Science with R - Mini Projects - Web Scraping Zomato
1littlecoder
Easily make Dumbbell Chart using {ggcharts} | Data Visualization in R
1littlecoder
GET Hackernews Front Page Results using REST API in R
1littlecoder
Quickly deploy ML WebApps from Google Colab using ngrok
1littlecoder
Use Jupyter Notebooks within VSCode (Visual Studio Code) in 2020
1littlecoder
Plotly Interactive Plots as Pandas Plotting Backend df.plot()
1littlecoder
Stack Overflow Developer Survey 2020 Highlights for New Programmers
1littlecoder
Matplotlib Animation Charts in Python using Celluloid
1littlecoder
Coding, Postwoman, Passion Project Book - Liyas Thomas Open Source Developer - 1littlecoder podcast
1littlecoder
Aspiring Data Scientist, Tips on How to learn Business Domain Knowledge
1littlecoder
Bokeh Interactive Charts as Pandas Plotting Backend df.plot_bokeh()
1littlecoder
Easy Fast Python Pandas Summary with Sidetable | Pandas Tips & Tricks
1littlecoder
Inception, Content Ideas, Consistency - Srivatsan Srinivasan AIEngineering YouTube Content Creator
1littlecoder
ggplot2 Text Customization with ggtext | Data Visualization in R
1littlecoder
Penguins Dataset Overview - iris alternative | EDA Data Visualization in R
1littlecoder
YouTube Growth Tips, Content Creation - Bhavesh Bhatt, YouTuber (Data Science & Machine Learning) #7
1littlecoder
Matplotlib Animated Bar Chart Race in Python | Data Visualization
1littlecoder
Simple Python GUI Development using {guietta}
1littlecoder
#8 Niche, Growth, Monetization - David Langer - YouTuber Dave on Data
1littlecoder
Simple Fast 3-step Python OCR using Deep Learning 40+ Languages
1littlecoder
Github New Feature Profile Summary/Mini-Resume - Profile Views
1littlecoder
Otto ML Assistant, GPT-3 on Philosophers, Nvidia-ARM - 3 ML Tech News
1littlecoder
What is OpenAI GPT-3 - Hype, Examples, Worries
1littlecoder
Julia 1.5, Datamuse API, Live HDR+ Pixel 4a - Machine Learning Tech News
1littlecoder
Self-driving Car Engineer sentenced, arXiv Dataset, AI/ML Startup Idea - Machine Learning Tech News
1littlecoder
GPT-3 Explorer, Ciphey (Automated Decryption), Py-Sudoku - ML Tech News
1littlecoder
How to use Advanced Google Search to extract Email Ids from Linkedin
1littlecoder
Cartoonizer Toon-IT (AI Web App), GPT-3 Advice, Android Earthquake Detection - ML Tech News
1littlecoder
Flow - R Package to visualize code logic, functions as a Flow Diagram
1littlecoder
Build GPT-3-like Language Model on Google Colab with minGPT [PyTorch]
1littlecoder
Create a Pencil Sketch Portrait with Python OpenCV
1littlecoder
More on: Data Literacy
View skill →Related Reads
📰
📰
📰
📰
Learn Golang Step by Step: if, else if, else, and switch With Real Backend Examples
Medium · Programming
Dev Log: 2026-07-01
Dev.to · Nasrul Hazim Bin Mohamad
I built a native Android app in an afternoon, and I've never written a line of Kotlin
Dev.to · Tilde A. Thurium
Vibe Coding Is Real Now — Here’s How to Do It Without Wrecking Your Codebase
Medium · Programming
🎓
Tutor Explanation
DeepCamp AI