0% found this document useful (0 votes)
5 views4 pages

Tutorial 6

This document outlines a tutorial for EE171: Principles of Computer Programming, focusing on Python libraries for data manipulation and presentation. It includes tasks such as creating NumPy arrays, Pandas DataFrames, filtering data, and plotting graphs. Additionally, it covers solving linear equations and computing basic statistics using SciPy.

Uploaded by

Nickson Gashuhe
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views4 pages

Tutorial 6

This document outlines a tutorial for EE171: Principles of Computer Programming, focusing on Python libraries for data manipulation and presentation. It includes tasks such as creating NumPy arrays, Pandas DataFrames, filtering data, and plotting graphs. Additionally, it covers solving linear equations and computing basic statistics using SciPy.

Uploaded by

Nickson Gashuhe
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

DEPARTMENT OF ELECTRICAL ENGINEERING

EE171: Principles of Computer Programming

TUTORIAL 6

Python Libraries for Data Manipulation and


Presentation

Question 1

Create a NumPy array and perform the following:

• Mean

• Maximum

• Minimum

Answer
Question 2

Create a Pandas DataFrame of students and display:

• First two rows

• Average marks

Answer

Question 3

Filter students who scored more than 70 marks.

Answer
Question 4

Plot a line graph showing marks of students.

Answer

Question 5

Create a bar chart for the same data.

Answer
Question 6

Use SciPy to solve a simple linear equation:


[ 2x + 5 = 15]

Answer

Question 7

Use SciPy to compute basic statistics.

Answer

You might also like