Data Analysis with Python
Week 3 Quiz Answer
Exploratory Data Analysis
Practice Quiz 1
Descriptive Statistics
Q1) Select the appropriate table for the following line of code:
df-pd.DataFrame('A':["a", "b","a","c","a"]}}
df ['A'].value_counts()
- value counts
- a 3
- b 1
- c 1
Q2)What plot would you see after running the following lines of code?
- x=df["engine size]
- y=df["price"]
- plt.scatter(x,y)
- plt.title("scatterplot of Engine Size vs Price")
- plt.xlabel("Eneine Size")
- plt.ylabel("Price!)
Practice Quiz 2
Group By in Python
Q1) Consider the dataframe df, how many different groups would there be if you applied the groupby method to the column 'A?
- 3
- 2
- 1
.
Q2) Select the appropriate description of a pivot table:
- A pivot table has one variable displayed along the columns and the other variable displayed along the rows.
- A pivot table contains statistical information for each column
Practice Quiz 3
Correlation
Q1) If umbrella usage is correlated with rain, does that mean that umbrellas cause rain?
- True
- False
Practice Quiz 4
- a
- b
- c
- they all have the same value
Practice Quiz 5
- described
- heado
- taill)
- Independent variable
- Dependent variable
- 100
- 1000
- 1
- The variables are correlated
- The variables are not correlated
- None of the above
- df_test=df['body-style', 'price']]
- df_grp = df_test.groupby (['body-style'],as_index=False).mean()
- The average price for each body style
- The average price
- The average body style
- 1
- 100
- -1
- -1
- 1
- 0
_____________________________________________________________
Data Analysis with Python
_____________________________________________________________
1 Comments
Nice article bro..
ReplyDelete