Question: Q 3 . Consider the following dataframe that we used throughout the lecture. The name of the dataframe is df . Please write the outputs

Q3. Consider the following dataframe that we used throughout the lecture. The name of the dataframe is df. Please write the outputs of each command given in the following.
brand year displ cyl tm hwy
\table[[ID,,,,,,],[1,audi,2001,1.8,4,auto,29],[38,dodge,2003,2.4,4,manual,24],[74,dodge,2005,5.9,8,auto,15],[83,ford,1999,5.0,8,auto,17],[99,ford,2008,5.4,8,manual,20],[100,honda,2007,1.6,4,manual,33],[154,nissan,2008,5.6,8,auto,18],[173,subaru,2008,2.5,6,manual,27],[199,toyota,2004,4.7,8,auto,15],[213,VW,2000,1.9,4,manual,44]]
df ['year']2001]
df.iloc[2]['brand']
'cyl'].unique ()
df[1]
'year']
manual"]['hwy'], mean
df.10c[1]['brand']
 Q3. Consider the following dataframe that we used throughout the lecture.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!