question 1 create table of any data for example a table with row names being bui
ID: 3875156 • Letter: Q
Question
question 1
create table of any data
for example a table with row names being buildings in campus
the column names may be longtitude, latitude, year built, and department it belongs to
then print it out on the terminal
question 2
make a functoin that read in a matrix
return its dimension
return the mean of the columns
return the mean of the rows
question 3
read in the iris data from sklearn
select the rows that is of versicolor (a)
then return the mean petal length of them
select the rows that that has sepal length greater than 4.5 but less than 6 (b)
combine the two sets of rows a and b
remove duplicate rows
how it will be graded:
will place your submitted file *****.py (however it is named) together with our modified matrix.csv
will run python3 *****.py in the terminal
with the directory changed to where *****.py and matrix.csv is located
all the above asked material should appear in the terminal
with the correct values
make sure you use python3
also you will need to install python and the dependent packages in your laptop
use pip to install packages
Explanation / Answer
Question 1
Question 2
Question 3
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.