## Intro to Data Analysis / Visualization with Python, Matplotlib and Pandas | Matplotlib Tutorial

Python information evaluation / data science tutorial. Let’s go!

For extra movies like this, I’d suggest my course right here: https://www.csdojo.io/moredata
Sample information and pattern code: https://www.csdojo.io/information

My rationalization about Jupyter Notebook and Anaconda: https://bit.ly/2JAtjF8

Outline – verify the remark part for a clickable model:
0:37: Why information visualization?
1:05: Why Python?
1:39: Why Matplotlib?
2:23: Installing Jupyter via Anaconda
3:20: Launching Jupyter

3:41: DEMO begins: create a folder and obtain information
4:27: Create a brand new Jupyter Notebook file
5:09: Importing libraries
6:04: Simple examples of how to use Matplotlib / Pyplot
7:21: Plotting a number of traces
8:46: Importing information from a CSV file
10:46: Plotting information you’ve imported
13:19: Using a 3rd argument within the plot() operate

13:42: An actual evaluation with an actual information set – loading information
14:49: Isolating the information for the U.S. and China
16:29: Plotting US and China’s inhabitants progress
18:22: Comparing relative growths as a substitute of absolutely the quantity
21:21: About how to get extra movies like this – it’s at https://www.csdojo.io/moredata

supply

### Comment List

• CS Dojo
November 9, 2020

Below is the outline of this video.

First, though, a few relevant links:
– Sample data and sample code: https://www.csdojo.io/data
– Introduction to Data Visualization with Python, the full course: https://www.csdojo.io/moredata

OUTLINE:
0:37: Why data visualization?
1:05: Why Python?
1:39: Why Matplotlib?
2:23: Installing Jupyter through Anaconda
3:20: Launching Jupyter

4:27: Create a new Jupyter Notebook file
5:09: Importing libraries
6:04: Simple examples of how to use Matplotlib / Pyplot
7:21: Plotting multiple lines
8:46: Importing data from a CSV file
10:46: Plotting data you’ve imported
13:19: Using the third argument in the plot() function

13:42: A real analysis with a real data set – loading data
14:49: Isolating the data for the U.S. and China
16:29: Plotting US and China’s population growth
18:22: Comparing relative growths instead of the absolute amount
21:21: About how to get more videos like this – it’s at https://www.csdojo.io/moredata

• CS Dojo
November 9, 2020

You are a great teacher. Congrats

• CS Dojo
November 9, 2020

• CS Dojo
November 9, 2020

thanks mate!! you helped me a lot

• CS Dojo
November 9, 2020

Very Well explained!! Thank you

• CS Dojo
November 9, 2020

I don't see the labels and I typed it exactly like You

• CS Dojo
November 9, 2020

Bro,
Seriously.
You Are my favorite teacher.

• CS Dojo
November 9, 2020

awesome video – i definately gonna make your course

• CS Dojo
November 9, 2020

Hi … is it possible to install Jupyter Lab with Python 3.9?

• CS Dojo
November 9, 2020

Yo i have question how do i make graph that depends of my input in console?

• CS Dojo
November 9, 2020

dude that bandwidth! lol

• CS Dojo
November 9, 2020

Good. But I would be prefered to see how to use this on Pycharm

• CS Dojo
November 9, 2020

Thank you for this. I really like how you explain every step!

• CS Dojo
November 9, 2020

Is it necessary to actually use Jupyter Notebook for Data analysis? Or will a regular IDE work fine?

• CS Dojo
November 9, 2020

I really like your videos! Thanks so much 🙂

• CS Dojo
November 9, 2020

3.14

• CS Dojo
November 9, 2020

nice explanation my dude

• CS Dojo
November 9, 2020

This guy does an excellent job. So clear

• CS Dojo
November 9, 2020

why not just use pip install jupyter ?

• CS Dojo
November 9, 2020

Hi guys, a python noob here. I'm interested in learning python for data science. Should I learn basic commands of python before applying it to data science or can I learn to apply python to data science without any prior knowledge?

• CS Dojo
November 9, 2020

Zoom

• CS Dojo
November 9, 2020

Thank you. The best intro on data science here in YouTube

• CS Dojo
November 9, 2020

Truly help me a lot with this video! Thank you so much!

• CS Dojo
November 9, 2020
• CS Dojo
November 9, 2020

Really amazing video!! Made me understand in such a simple way!

• CS Dojo
November 9, 2020

I do not know why I am getting this error

• CS Dojo
November 9, 2020

ImportError Traceback (most recent call last)

<ipython-input-4-99ba79ecbbfb> in <module>

—-> 1 from matplotlib import pyplot as plt

ImportError: cannot import name 'pyplot' from 'matplotlib' (unknown location)

• CS Dojo
November 9, 2020

respect you sharing knowledge thanks

• CS Dojo
November 9, 2020

Hi, after executing the command ' from matplotlib import pyplot as plt ' in the jupyter notebook using anaconda , I am getting the following error –
—————————————————————————

ImportError Traceback (most recent call last)

<ipython-input-4-a0d2faabd9e9> in <module>

—-> 1 import matplotlib.pyplot as plt

~anaconda3envsnotebooklibsite-packagesmatplotlibpyplot.py in <module>

34 from cycler import cycler

35 import matplotlib

—> 36 import matplotlib.colorbar

37 import matplotlib.image

38 from matplotlib import rcsetup, style

~anaconda3envsnotebooklibsite-packagesmatplotlibcolorbar.py in <module>

42 import matplotlib.collections as collections

43 import matplotlib.colors as colors

—> 44 import matplotlib.contour as contour

45 import matplotlib.cm as cm

46 import matplotlib.gridspec as gridspec

~anaconda3envsnotebooklibsite-packagesmatplotlibcontour.py in <module>

15 import matplotlib.collections as mcoll

16 import matplotlib.font_manager as font_manager

—> 17 import matplotlib.text as text

18 import matplotlib.cbook as cbook

19 import matplotlib.mathtext as mathtext

~anaconda3envsnotebooklibsite-packagesmatplotlibtext.py in <module>

14 from .font_manager import FontProperties

15 from .patches import FancyArrowPatch, FancyBboxPatch, Rectangle

—> 16 from .textpath import TextPath # Unused, but imported by others.

17 from .transforms import (

18 Affine2D, Bbox, BboxBase, BboxTransformTo, IdentityTransform, Transform)

~anaconda3envsnotebooklibsite-packagesmatplotlibtextpath.py in <module>

9 from matplotlib.font_manager import FontProperties, get_font

—> 11 from matplotlib.mathtext import MathTextParser

12 from matplotlib.path import Path

13 from matplotlib.transforms import Affine2D

~anaconda3envsnotebooklibsite-packagesmatplotlibmathtext.py in <module>

25

26 import numpy as np

—> 27 from PIL import Image

28 from pyparsing import (

29 Combine, Empty, FollowedBy, Forward, Group, Literal, oneOf, OneOrMore,

~AppDataRoamingPythonPython38site-packagesPILImage.py in <module>

92 # Also note that Image.core is not a publicly documented interface,

93 # and should be considered private and subject to change.

—> 94 from . import _imaging as core

95

96 if _version_ != getattr(core, "PILLOW_VERSION", None):

ImportError: cannot import name '_imaging' from 'PIL' (C:UsersRohitAppDataRoamingPythonPython38site-packagesPIL__init__.py)

I updated and reinstalled matplotlib , anaconda and jupyter notebook to their respective latest versions but it is showing the same error. It is not showing error if I run the command 'import matplotlib' but it is showing error for this command ' from matplotlib import pyplot as plt' . Also searched in Stack Overflow but still no use. Also updated python3 to the latest cersion. Pls suggest to come out of this problem. What to do?

• CS Dojo
November 9, 2020

Great video and great explanation as well. He is setting the standards of teaching and living to them as always. Keep up the great work 🔥

• CS Dojo
November 9, 2020

thanks

• CS Dojo
November 9, 2020

amazing! thank you!