Professional Documents
Culture Documents
Practice For Lesson 4-3
Practice For Lesson 4-3
Practice For Lesson 4-3
Copyright © 2020, Proton Expert Systems & Solutions. All rights reserved
1 Practices for Lesson 4: Using Python in Data Science
Practices for Lesson 4
Overview
In these practices for this lesson, you will learn to install Anaconda, configure Anaconda, launch
Jupyter Notebook, process different types of data, create visualizations using few chart
properties and implement Chi-square algorithm.
Copyright © 2020, Proton Expert Systems & Solutions. All rights reserved
2 Practices for Lesson 4: Using Python in Data Science
Practice of 4-3: Creating visualizations by using chart properties and
chart styling
Overview
In this practice, you will learn to create charts and style the charts using Python libraries.
b. On successful execution, view the sine wave displayed below your code cell as
shown below.
Copyright © 2020, Proton Expert Systems & Solutions. All rights reserved
3 Practices for Lesson 4: Using Python in Data Science
3. Create bar graph in Jupyter Notebook
a. Copy the below code and paste it in Jupyter Notebook cell to plot bar graph as
shown below. Click Run icon.
# Bar Graph
import matplotlib.pyplot as plt
left = [1, 2, 3, 4, 5, 6, 7, 8]
plt.title('Bar Graph')
# function to show the plot
plt.show()
Copyright © 2020, Proton Expert Systems & Solutions. All rights reserved
4 Practices for Lesson 4: Using Python in Data Science
b. On successful execution, view the bar graph displayed below your code cell as
shown below.
Copyright © 2020, Proton Expert Systems & Solutions. All rights reserved
5 Practices for Lesson 4: Using Python in Data Science
4. Creating a pie chart in jupyter Nodebook
a. Copy the below code and paste it in Jupyter Notebook cell to plot the pie chart as
shown below. Click Run icon.
slices = [3, 7, 8, 6]
plt.show()
b. On successful execution, view the pie chart displayed below your code cell as
shown below.
Copyright © 2020, Proton Expert Systems & Solutions. All rights reserved
6 Practices for Lesson 4: Using Python in Data Science
5. Close the Jupyter Notebook.
Copyright © 2020, Proton Expert Systems & Solutions. All rights reserved
7 Practices for Lesson 4: Using Python in Data Science