Lab 7
Lab 7
Fall 2021
CSE422L Data Analytics Lab
Submitted by: Ayaz Mehmood
Registration No.:18PWCSE1652
Section: A
Submitted to:
Engr. Mian Ibad Ali Shah
Last date of Submission:
11 February 2022
TASKS
Task 1:
PANDAS: In the 'WeatherAUS' dataset file, Perform using Pandas :
Part 1:
1.1) Drop the Sunshine column
1.2) Change the index of the data frame to (Date and Location) must be concatenated and then
set the index
1.3) Drop rows having NA. Any problems with this step? Explain.
The problem with this step is due to removal of null value cells the size of the dataset
decrease
1.4) Change column names to your choice!
1.5) Create a data frame having location and Average Minimum and Average Maximum
temperatures grouped by Location .
Numpy Task:
2) Create a simple 1D integer array (64 elements) in Numpy. Reshape the array to
(4,4,4). Also change the data type to float.
3) Perform linspace function as per your choice (other than practiced in lab)
4) Create a random numbered array (random numbers ranging from 1 to 100) using
Numpy.random() function.
5) In the 'WeatherAUS' dataset file, Perform using Numpy:
5.2) Get positions of elements where the values of both features are same in
"combined"