top of page
learn_data_science.jpg

Data Scientist Program

 

Free Online Data Science Training for Complete Beginners.
 


No prior coding knowledge required!

Data Visualization in Python



Content:

  • What is Data Visualization?

  • Useful packages for visualizations in python.

  • How to use the right visualization?

Line Charts

Bar Graphs

Histograms

Scatter Plots

What is data visualization?

Useful packages for visualizations in python

How to use the right visualization?


·

1- Line plot


A line chart is a graph that represents information as a series of data points connected by a straight line. In the line charts, each data point or marker is plotted and connected with a line or curve.

Using Matplotlib



# make data 
x = [2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020] y = np.linspace(0, 10, 10)  
# plot
fig, ax = plt.subplots()  
ax.plot(x, y, marker='o', linewidth=2.0) 
 plt.xlabel('Years')
 plt.ylabel('Production (ton)')
 plt.title('Production')

Using Seaborn



# make data
x = [2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020] y = np.linspace(0, 10, 10)
sns.set_style('darkgrid') 
sns.lineplot(x, y,  marker='o')   
plt.xlabel('Years') 
plt.ylabel('Production (ton)') 
plt.title('Production')


2- Bar Graphs

3- Histograms

4 -Scatter Plots


0 comments

Recent Posts

See All

Commentaires


bottom of page