Q:
What is the name of the Pandas function that loads a CSV file from disk?
Q:
How do you access a column named spare_cash in the data structure Pandas makes after importing a CSV file, assuming the data variable is called data? Select all that apply.
Q:
What does the Pandas iloc() function do?
Q:
When you call sort_values() on a DataFrame, how does its behaviour change if you set the inplace parameter to True?
Q:
Which is the correct syntax to select rows with an avg_income value less than 10000 from a DataFrame?
Q:
If you have a DataFrame that has been sorted from highest to lowest avg_income, how would you retrieve the row with the highest avg_income?
Q:
In the code, we called plt.text(). Can you remember what plt is?
Q:
When you call a function, you can specify parameters either by putting them in the correct order: plt.text(10, 100, ‘label text’) or by naming them, plt.text(s=’label text’, y=100,x=10). Which of the following correctly place a label of ‘London’ at position (56, 36)? (Select all that apply).
Q:
What is a in this code? for a,b in richest.iterrows():
Q:
Consider the following code, which performs a similar task to the for loop. [plt.text(x=row[‘avg_income’], y=row[‘happyScore’], s=row[‘country’]) for k,row in data.iterrows()] What is the construct we are using here?
Q:
In the top left of the plot showing happyScore against avg_income, there are several points. What do these points suggest?
Q:
Which function parameter can be used to set the transparency on the call to scatter()?
Q:
Which function parameter can be used to set the size of the dots drawn by the scatter() function?
Q:
Which of the following are good reasons for using algorithms to analyse the data instead of just using our own eyes and brain? Select all that apply.
Q:
Why did the video show K-means with k=3 and not any higher? Select all that apply.
Subscribe
0 Comments
Find Questions in This Page: "CTRL+F"