Python Data Analysis
- 72Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Which alias is conventionally used when importing pandas in the tutorial?
Which alias is conventionally used when importing pandas in the tutorial?
72 questions
- 1
Which alias is conventionally used when importing pandas in the tutorial?
- A
The alias
pltis used for pandas - B
The alias
npis used for pandas - C
The alias
pdis used for pandas - D
The alias
snsis used for pandas
Correct answer
CThe alias
pdis used for pandasExplanation
Pandas is imported with the alias
pd, allowing commands such aspd.read_csv()andpd.set_option(). - A
- 2
Which alias is used for NumPy in the tutorial?
- A
The alias
snsis used for NumPy - B
The alias
npis used for NumPy - C
The alias
pdis used for NumPy - D
The alias
pltis used for NumPy
Correct answer
BThe alias
npis used for NumPyExplanation
NumPy is imported as
np. - A
- 3
Which library is imported as
pltfor plotting?- A
Seaborn is imported as
plt - B
Pandas is imported as
plt - C
Matplotlib is imported as
plt - D
NumPy is imported as
plt
Correct answer
CMatplotlib is imported as
pltExplanation
The tutorial imports
matplotlib.pyplotaspltfor visualization. - A
- 4
What is Seaborn especially useful for in this workflow?
- A
Converting dates into integers
- B
Resetting row indexes after filtering
- C
Reading comma-separated files
- D
Creating exploratory plots with data
Correct answer
DCreating exploratory plots with data
Explanation
Seaborn is introduced as a visualization library that is especially helpful for exploratory plots.
- A
- 5
What effect does
plt.style.use('ggplot')have?- A
It removes missing values from every plotted column
- B
It changes the visual style of Matplotlib and Seaborn plots
- C
It converts all columns into numeric values
- D
It limits plots to exactly ten observations
Correct answer
BIt changes the visual style of Matplotlib and Seaborn plots
Explanation
The style sheet changes the appearance of Matplotlib and Seaborn plots.
- A
- 6
What does
pd.set_option('display.max_columns', 200)accomplish?- A
It adds 200 columns filled with missing values
- B
It selects the 200 most important columns
- C
It allows up to 200 columns to be displayed
- D
It limits the data frame to 200 columns
Correct answer
CIt allows up to 200 columns to be displayed
Explanation
This display option changes how many columns pandas shows, without changing the data frame itself.
- A
- 7
What is a Kaggle notebook primarily described as?
- A
A package that replaces Python and pandas
- B
A database that automatically cleans every uploaded data set
- C
An environment for running code and writing plain-text descriptions
- D
A spreadsheet that cannot execute programming code
Correct answer
CAn environment for running code and writing plain-text descriptions
Explanation
A Kaggle notebook is described as an environment similar to a Jupyter notebook where code and explanatory text can be written and executed.
- A
- 8
Which function is used to load the roller-coaster CSV file into a data frame?
- A
The function
pd.reset_index()is used - B
The function
pd.value_counts()is used - C
The function
pd.duplicated()is used - D
The function
pd.read_csv()is used
Correct answer
DThe function
pd.read_csv()is usedExplanation
The data is loaded with pandas'
read_csv()function and assigned todf. - A
- 9
What does
df.shapereveal about a data frame?- A
It reports the average of every numeric column
- B
It reports the number of duplicate values only
- C
It reports the number of rows and columns
- D
It reports the data type of every column
Correct answer
CIt reports the number of rows and columns
Explanation
The shape describes the data frame dimensions: rows followed by columns.
- A
- 10
What dimensions did the initially loaded roller-coaster data set have?
- A
It had 187 rows and 56 columns
- B
It had 1087 rows and 13 columns
- C
It had 990 rows and 13 columns
- D
It had 56 rows and 187 columns
Correct answer
AIt had 187 rows and 56 columns
Explanation
The initially loaded data set was described as having 187 rows and 56 columns.
- A
- 11
What does
df.head()display by default?- A
The five columns with the most missing values
- B
The last five rows of the data frame
- C
The five most common values in each column
- D
The first five rows of the data frame
Correct answer
DThe first five rows of the data frame
Explanation
The
head()method displays the first five rows unless another number is specified. - A
- 12
How can a user display the first 20 rows instead of the default five?
- A
By calling
df.shape(20) - B
By calling
df.columns(20) - C
By calling
df.head(20) - D
By calling
df.describe(20)
Correct answer
CBy calling
df.head(20)Explanation
An integer argument passed to
head()specifies how many initial rows to display. - A
- 13
Why might dots appear between columns when displaying a data frame?
- A
Pandas hides some columns by default when many columns exist
- B
The omitted columns were automatically deleted from the data
- C
The omitted columns contain invalid Python syntax
- D
The omitted columns contain only duplicate rows
Correct answer
APandas hides some columns by default when many columns exist
Explanation
Pandas abbreviates wide displays by hiding some columns, which produces dots in the output.
- A
- 14
What does
df.columnsprovide?- A
A count of missing values in each column
- B
A listing of all column names
- C
A summary of numeric statistics
- D
A list of rows containing duplicates
Correct answer
BA listing of all column names
Explanation
The
columnsattribute lists the names of the data frame's columns. - A
- 15
What does
df.dtypesshow?- A
The average value calculated for each column
- B
The order in which columns were created
- C
The number of unique values in each column
- D
The pandas data type assigned to each column
Correct answer
DThe pandas data type assigned to each column
Explanation
Each data-frame column is a pandas Series with a data type, which
df.dtypesdisplays. - A
- 16
How are columns with the pandas
objecttype characterized in this data set?- A
They generally contain string-like values
- B
They always contain Boolean values
- C
They always contain floating-point values
- D
They contain only date-time values
Correct answer
AThey generally contain string-like values
Explanation
The tutorial identifies the object columns as generally representing strings.
- A
- 17
What kind of information does
df.describe()summarize by default?- A
Only the names of object columns
- B
The complete text of every string column
- C
Only rows containing missing values
- D
Statistics for numeric data
Correct answer
DStatistics for numeric data
Explanation
The
describe()function provides summary statistics for numeric columns by default. - A
- 18
Which statistic from
df.describe()indicates how many nonmissing observations a numeric column has?- A
The standard deviation statistic
- B
The minimum statistic
- C
The count statistic
- D
The mean statistic
Correct answer
CThe count statistic
Explanation
The count reports the number of available values used for the numeric summary.
- A
- 19
Why should unwanted columns or rows be removed before extensive cleaning?
- A
It guarantees that every remaining value is correct
- B
It prevents time being spent cleaning data that will not be used
- C
It automatically removes every duplicate observation
- D
It converts all remaining strings into dates
Correct answer
BIt prevents time being spent cleaning data that will not be used
Explanation
The tutorial recommends removing irrelevant data first so cleaning effort is focused on the retained subset.
- A
- 20
Why were numeric versions of some roller-coaster features created?
- A
They replace every missing value with the column mean
- B
They convert categorical features into row indexes
- C
They remove text such as units and store comparable numeric values
- D
They preserve units as text while deleting all numbers
Correct answer
CThey remove text such as units and store comparable numeric values
Explanation
Numeric versions of speed and similar fields strip text such as units and provide values in a common unit.
- A
- 21
How can several desired columns be selected from a pandas data frame?
- A
By passing a plot type into the
dtypesmethod - B
By passing a row number inside the
shapemethod - C
By passing a list of column names inside double brackets
- D
By passing a statistic name into the
columnsattribute
Correct answer
CBy passing a list of column names inside double brackets
Explanation
Using double brackets with a list of names subsets a data frame to those columns.
- A
- 22
What is the purpose of the
drop()method when removing a column?- A
It converts a specified column into a numeric series
- B
It counts how often values occur in a specified column
- C
It displays the first values from a specified column
- D
It removes a specified column from the data frame
Correct answer
DIt removes a specified column from the data frame
Explanation
The
drop()method can remove one column or a list of columns. - A
- 23
Why is
axis=1used when dropping a column withdrop()?- A
It tells pandas to keep only the first column
- B
It tells pandas to operate on columns rather than rows
- C
It tells pandas to calculate one statistic per column
- D
It tells pandas to sort columns in descending order
Correct answer
BIt tells pandas to operate on columns rather than rows
Explanation
In this context,
axis=1identifies the column axis; rows useaxis=0. - A
- 24
What is the purpose of assigning a selected subset back to
df?- A
It makes the reduced set of columns the working data frame
- B
It changes every value in the data frame to a string
- C
It sorts the data frame by its first column
- D
It restores all columns that were previously removed
Correct answer
AIt makes the reduced set of columns the working data frame
Explanation
Reassignment makes the selected subset the version of
dfused in later analysis. - A
- 25
Why is
.copy()added after subsetting the data frame?- A
It automatically copies every missing value into the subset
- B
It converts the subset into a visualization object
- C
It duplicates every row so the sample size increases
- D
It creates an independent data frame rather than a reference
Correct answer
DIt creates an independent data frame rather than a reference
Explanation
Using
.copy()helps ensure the result is a new data frame and not merely a reference to the original. - A
- 26
What was the shape after selecting the desired columns but before removing duplicate rows?
- A
It had 187 rows and 56 columns
- B
It had 1087 rows and 56 columns
- C
It had 990 rows and 13 columns
- D
It had 1087 rows and 13 columns
Correct answer
DIt had 1087 rows and 13 columns
Explanation
After column selection, the data frame retained 1087 rows and was reduced to 13 columns.
- A
- 27
Which function converts a column such as
Opening Dateinto a date-time type?- A
The function
pd.to_datetime()is used - B
The function
df.value_counts()is used - C
The function
pd.to_numeric()is used - D
The function
df.reset_index()is used
Correct answer
AThe function
pd.to_datetime()is usedExplanation
The tutorial uses
pd.to_datetime()to force the opening-date column into a date-time type. - A
- 28
What does
pd.to_numeric()attempt to do?- A
It converts values into a numeric column when possible
- B
It converts values into categorical labels when possible
- C
It converts values into row indexes when possible
- D
It converts values into a date-time column when possible
Correct answer
AIt converts values into a numeric column when possible
Explanation
The function attempts to make a column numeric, such as converting a numeric-looking string column.
- A
- 29
How are column names renamed in pandas using
df.rename()?- A
A dictionary maps each old name to its new name
- B
A row index maps each old name to a position
- C
A plot maps each old name to a color
- D
A statistic maps each old name to its average
Correct answer
AA dictionary maps each old name to its new name
Explanation
The
columnsargument receives a dictionary of old-name and new-name pairs. - A
- 30
Why can consistent capitalization and avoiding spaces improve column names?
- A
They cause pandas to infer every column as numeric
- B
They make column references more consistent and convenient
- C
They prevent a data frame from having more than ten columns
- D
They guarantee that missing values are removed
Correct answer
BThey make column references more consistent and convenient
Explanation
Consistent names, especially names without spaces, make later references easier to read and use.
- A
- 31
Which expression identifies missing values throughout a data frame?
- A
The expression
df.isna()identifies missing values - B
The expression
df.columns()identifies missing values - C
The expression
df.shape()identifies missing values - D
The expression
df.head()identifies missing values
Correct answer
AThe expression
df.isna()identifies missing valuesExplanation
The
isna()method returns Boolean indicators for missing or null values. - A
- 32
Why is
df.isna().sum()more useful than viewingdf.isna()alone for a broad missingness check?- A
It displays only columns that contain no missing values
- B
It summarizes the number of missing values in each column
- C
It replaces every missing value with zero
- D
It removes every row containing a missing value
Correct answer
BIt summarizes the number of missing values in each column
Explanation
Summing the Boolean missingness indicators provides a count of null values per column.
- A
- 33
What does
duplicated()return by default for duplicate rows?- A
It deletes all duplicate rows immediately
- B
It marks only the first occurrence as a duplicate
- C
It marks every row as a duplicate, including unique rows
- D
It marks later occurrences as duplicates and leaves the first unmarked
Correct answer
DIt marks later occurrences as duplicates and leaves the first unmarked
Explanation
By default, the first occurrence is retained and subsequent identical rows are marked
True. - A
- 34
How can duplicate observations be inspected after identifying them?
- A
By using
.shapewith the duplicate column name - B
By using
.locwith the Boolean duplicate mask - C
By using
.rename()with the duplicate Boolean values - D
By using
.describe()with the duplicate row number
Correct answer
BBy using
.locwith the Boolean duplicate maskExplanation
Applying
.locwith the Boolean mask selects the rows identified as duplicates. - A
- 35
What happened when duplicates were checked using only
Coaster Name?- A
Exactly thirteen rows were removed from the data frame
- B
Ninety-seven later rows shared a coaster name with an earlier row
- C
Every row had a unique coaster name and location
- D
No rows shared a coaster name with an earlier row
Correct answer
BNinety-seven later rows shared a coaster name with an earlier row
Explanation
The tutorial found 97 duplicated rows when checking only the coaster-name field.
- A
- 36
Why might two records have the same coaster name but different years?
- A
The name field automatically changes when a date is missing
- B
A coaster might have been introduced, removed, and reintroduced
- C
A duplicate name proves that both records are data-entry errors
- D
Pandas always assigns a random year to duplicate rows
Correct answer
BA coaster might have been introduced, removed, and reintroduced
Explanation
The tutorial suggests that a coaster could have been put online, taken offline, and later put back online.
- A
- 37
Which columns were used together to define the duplicates that should be removed?
- A
Latitude, longitude, and year introduced
- B
Coaster name, location, and opening date
- C
Speed, height, and material type
- D
Status, manufacturer, and height restriction
Correct answer
BCoaster name, location, and opening date
Explanation
Duplicates were identified using the combination of coaster name, location, and opening date.
- A
- 38
What does applying
~to a duplicate mask accomplish?- A
It selects only rows marked as duplicates
- B
It selects rows that are not marked as duplicates
- C
It reverses the order of duplicate rows
- D
It converts duplicate values into missing values
Correct answer
BIt selects rows that are not marked as duplicates
Explanation
The tilde negates the Boolean mask, so nonduplicate rows, including the first occurrence, are selected.
- A
- 39
Why is
reset_index(drop=True)useful after removing rows?- A
It converts the index values into dates
- B
It creates a consecutive index without retaining the old index as a column
- C
It removes every column whose name contains the word index
- D
It restores rows that were removed as duplicates
Correct answer
BIt creates a consecutive index without retaining the old index as a column
Explanation
Filtering can leave gaps in the index;
reset_index(drop=True)creates a new consecutive index without adding the old one as a column. - A
- 40
What was the final cleaned data set described in the tutorial?
- A
It contained 990 unique roller coasters and 56 feature columns
- B
It contained 1087 unique roller coasters and 56 feature columns
- C
It contained 187 unique roller coasters and 13 feature columns
- D
It contained 990 unique roller coasters and 13 feature columns
Correct answer
DIt contained 990 unique roller coasters and 13 feature columns
Explanation
After removing the selected duplicates, the data set had 990 unique roller coasters and 13 feature columns.
- A
- 41
What is univariate analysis?
- A
Grouping observations by two categorical variables
- B
Analyzing one feature at a time
- C
Comparing every feature with every other feature
- D
Removing duplicate rows from several data frames
Correct answer
BAnalyzing one feature at a time
Explanation
Univariate analysis examines an individual feature's distribution, values, and potential outliers.
- A
- 42
What does
value_counts()show for a single categorical or discrete-valued series?- A
The number of columns displayed in a notebook
- B
The correlation between every pair of columns
- C
The date type assigned to every row
- D
The frequency of each unique value
Correct answer
DThe frequency of each unique value
Explanation
The method counts how often each unique value occurs and orders the results from most to least common by default.
- A
- 43
What did applying
value_counts()toYear Introducedreveal?- A
The years with the greatest and fewest numbers of introduced coasters
- B
The exact correlation between height and speed
- C
The number of missing coordinates in every row
- D
The average speed for every location
Correct answer
AThe years with the greatest and fewest numbers of introduced coasters
Explanation
Counting the years shows which introduction years occur most and least often.
- A
- 44
Why might
head(10)be applied aftervalue_counts()before plotting?- A
To calculate statistics for exactly ten columns
- B
To convert ten values into date-time objects
- C
To remove ten duplicate rows from the data
- D
To plot only the ten most frequent values
Correct answer
DTo plot only the ten most frequent values
Explanation
Because
value_counts()is ordered by frequency,head(10)selects the ten most common values for a less crowded plot. - A
- 45
What does a bar plot of the counted introduction years display?
- A
Each column's data type and memory usage
- B
Each coaster's speed and height as a paired point
- C
Each year and the number of coasters introduced in that year
- D
Each missing value and its replacement
Correct answer
CEach year and the number of coasters introduced in that year
Explanation
The bar plot represents years on one axis and their counts on the other.
- A
- 46
What is the purpose of adding a plot title and axis labels?
- A
They convert the plot into a data frame
- B
They change the underlying values being plotted
- C
They clarify what the plotted values and axes represent
- D
They remove outliers from the plotted data
Correct answer
CThey clarify what the plotted values and axes represent
Explanation
Titles and labels improve interpretation by identifying the subject and meaning of each axis.
- A
- 47
Why is a histogram appropriate for roller-coaster speed?
- A
It displays the names of all unique categorical values
- B
It compares two variables using one point per observation
- C
It shows the counts of a continuous variable within bins
- D
It shows exact correlations among all numeric features
Correct answer
CIt shows the counts of a continuous variable within bins
Explanation
A histogram groups continuous values into intervals, or bins, and displays the count in each interval.
- A
- 48
What is the effect of changing the number of histogram bins?
- A
It changes the column from numeric to categorical
- B
It changes every speed value into a different unit
- C
It removes all observations outside the central range
- D
It changes the granularity used to display the distribution
Correct answer
DIt changes the granularity used to display the distribution
Explanation
More or fewer bins provide different levels of detail about the same distribution.
- A
- 49
What does a kernel density estimate plot provide?
- A
A list of all duplicate rows in the data frame
- B
A table of the original values in sorted order
- C
A smoothed, normalized view of a variable's distribution
- D
A direct calculation of the mean for every group
Correct answer
CA smoothed, normalized view of a variable's distribution
Explanation
A KDE plot provides a smoothed distribution and is often less cluttered when comparing multiple distributions.
- A
- 50
What pattern was observed in the roller-coaster speed distribution?
- A
The distribution contained no values near 35 or 50 miles per hour
- B
Only one speed occurred because all coasters had identical designs
- C
All speeds were evenly distributed across the entire range
- D
Common concentrations appeared around roughly 35 and 50 miles per hour
Correct answer
DCommon concentrations appeared around roughly 35 and 50 miles per hour
Explanation
The KDE discussion noted noticeable humps near approximately 35 and 50 miles per hour.
- A
- 51
What is the main purpose of a scatter plot in this analysis?
- A
To list the names of every column in a data frame
- B
To identify the data type of one selected series
- C
To count the frequency of one categorical feature
- D
To examine the relationship between two numeric features
Correct answer
DTo examine the relationship between two numeric features
Explanation
A scatter plot places paired observations for two variables on an x-y coordinate system.
- A
- 52
In the basic scatter plot, which variables were placed on the axes?
- A
Year introduced on x and material type on y
- B
Height in feet on x and location on y
- C
Speed in miles per hour on x and height in feet on y
- D
Location on x and status on y
Correct answer
CSpeed in miles per hour on x and height in feet on y
Explanation
The example plotted speed in miles per hour against height in feet.
- A
- 53
What does each point in that scatter plot represent?
- A
One observation or roller-coaster row
- B
One missing value in the data set
- C
One column in the data frame
- D
One unique data type in pandas
Correct answer
AOne observation or roller-coaster row
Explanation
Each dot corresponds to an observation in the data frame.
- A
- 54
What is the purpose of
plt.show()after creating a pandas plot?- A
It saves the plot permanently as a CSV file
- B
It changes the plot from a scatter plot to a histogram
- C
It displays the plot cleanly without printing the object representation
- D
It removes all null values before rendering the plot
Correct answer
CIt displays the plot cleanly without printing the object representation
Explanation
Calling
plt.show()produces a cleaner display instead of showing the Matplotlib object representation. - A
- 55
What additional capability does Seaborn provide in the scatter-plot example?
- A
It changes all numeric columns into strings
- B
It automatically deletes every point with a missing value
- C
It limits the scatter plot to one observation per category
- D
It can color points according to another variable using
hue
Correct answer
DIt can color points according to another variable using
hueExplanation
The
hueparameter assigns colors based on a third variable, such as year introduced. - A
- 56
What does a Seaborn pair plot display?
- A
Only the ten largest values in one selected series
- B
Pairwise relationships and individual feature distributions
- C
The exact Python code used to load the data
- D
Only the missing values for every categorical column
Correct answer
BPairwise relationships and individual feature distributions
Explanation
A pair plot presents scatter plots for feature pairs and distributions along the diagonal.
- A
- 57
What appears along the diagonal of a typical pair plot?
- A
The average of each feature grouped by location
- B
The distribution of each individual feature
- C
The duplicate rows for each feature
- D
The column names in alphabetical order only
Correct answer
BThe distribution of each individual feature
Explanation
The diagonal shows each feature compared with itself, commonly as its distribution.
- A
- 58
How can a pair plot use color to add another dimension of information?
- A
By supplying a categorical feature such as material type as
hue - B
By setting the number of histogram bins equal to the row count
- C
By using
reset_index()to color each row sequentially - D
By replacing every numeric feature with its column index
Correct answer
ABy supplying a categorical feature such as material type as
hueExplanation
The material type was used as
hue, allowing point colors to represent categories such as wood or steel. - A
- 59
What does a correlation value describe between two numeric features?
- A
The strength and direction of their linear association
- B
The number of missing values in their column names
- C
The number of duplicate rows shared by the features
- D
The order in which the features were imported
Correct answer
AThe strength and direction of their linear association
Explanation
Correlation summarizes the strength and direction of association between numeric variables.
- A
- 60
What relationship was reported between coaster speed and height?
- A
They had a correlation of approximately 0.73
- B
They had a correlation of exactly 0
- C
They had a correlation of exactly 1
- D
They had a correlation of approximately −0.73
Correct answer
AThey had a correlation of approximately 0.73
Explanation
The tutorial reported a speed-height correlation of about 0.73, indicating a fairly strong positive association.
- A
- 61
Why should null values be removed before calculating the correlation matrix in the example?
- A
The correlation function only accepts columns with text values
- B
Removing nulls changes all categorical values into numbers
- C
The calculation is performed on complete numeric observations
- D
Null removal guarantees that every correlation equals zero
Correct answer
CThe calculation is performed on complete numeric observations
Explanation
The example selects numeric features, drops null rows, and then calculates correlations on the remaining complete observations.
- A
- 62
What does a correlation heat map add to a correlation data frame?
- A
A method for selecting the first ten rows of each feature
- B
A replacement for date-time conversion
- C
A list of all locations with missing coordinates
- D
A visual representation of correlation strengths among features
Correct answer
DA visual representation of correlation strengths among features
Explanation
A heat map uses color to make the pattern of correlations easier to inspect visually.
- A
- 63
Why are the diagonal values of a correlation matrix equal to 1?
- A
Each feature has exactly one missing value
- B
The diagonal contains the number of rows in the data frame
- C
The diagonal contains the default histogram bin count
- D
Each feature is perfectly correlated with itself
Correct answer
DEach feature is perfectly correlated with itself
Explanation
A variable has a perfect positive correlation with itself, so diagonal entries equal 1.
- A
- 64
What question was used to demonstrate a complete exploratory analysis task?
- A
Which materials occur in precisely thirteen columns?
- B
Which locations have the fastest coasters with at least ten coasters?
- C
Which manufacturers have exactly ten missing latitude values?
- D
Which years contain the greatest number of duplicate rows?
Correct answer
BWhich locations have the fastest coasters with at least ten coasters?
Explanation
The final analysis asks which locations have the highest average coaster speeds while meeting a minimum of ten coasters.
- A
- 65
Why was the location value
Otherexcluded from the final location analysis?- A
It is the location with the highest average speed
- B
It identifies rows that are already sorted correctly
- C
It does not represent a specific actual location
- D
It contains only numeric values rather than text
Correct answer
CIt does not represent a specific actual location
Explanation
The tutorial treats
Otheras a non-specific category rather than a true location and filters it out. - A
- 66
What does grouping by location allow the analyst to do?
- A
Convert every location into a unique row index
- B
Compare only the first ten rows of the data set
- C
Remove all speed values from the data frame
- D
Calculate statistics separately for each location
Correct answer
DCalculate statistics separately for each location
Explanation
Grouping creates location-specific subsets on which aggregate statistics can be calculated.
- A
- 67
What two aggregates were calculated for speed within each location?
- A
The minimum height and the maximum year
- B
The mean speed and the number of coaster observations
- C
The median latitude and the mode of material
- D
The number of columns and the number of data types
Correct answer
BThe mean speed and the number of coaster observations
Explanation
The grouped analysis calculates the mean speed and the count of coasters for each location.
- A
- 68
Why was a count threshold applied after grouping by location?
- A
To retain only locations with at least ten coasters
- B
To retain only locations with exactly ten columns
- C
To remove locations whose average speed was positive
- D
To ensure every location had the same number of rows
Correct answer
ATo retain only locations with at least ten coasters
Explanation
The analysis filters grouped results to locations whose coaster count is greater than or equal to ten.
- A
- 69
Which grouped statistic was used to rank locations by coaster speed?
- A
The maximum number of missing values
- B
The first coaster's opening date
- C
The count of columns for each location
- D
The mean speed for each location
Correct answer
DThe mean speed for each location
Explanation
Locations were sorted using the mean speed calculated for their coasters.
- A
- 70
What type of plot was chosen to display the final location comparison?
- A
A heat map of all string-valued columns
- B
A scatter plot of latitude against longitude
- C
A horizontal bar plot of average coaster speed
- D
A histogram of every individual opening date
Correct answer
CA horizontal bar plot of average coaster speed
Explanation
A horizontal bar plot was used to compare average coaster speed across qualifying locations.
- A
- 71
Which location was reported as having the highest average coaster speed under the ten-coaster condition?
- A
Busch Gardens was reported as having the highest average
- B
Every location was reported as having the same average
- C
Cedar Point was reported as having the highest average
- D
The
Othercategory was reported as having the highest average
Correct answer
ABusch Gardens was reported as having the highest average
Explanation
The final plot showed Busch Gardens first, followed by Cedar Point and other qualifying locations.
- A
- 72
Why does explicitly asking a data question help an analyst learn pandas?
- A
It forces the analyst to identify and connect the operations needed for an answer
- B
It eliminates the need to understand the data types in the data frame
- C
It guarantees that pandas will generate the final answer automatically
- D
It makes exploratory plots unnecessary
Correct answer
AIt forces the analyst to identify and connect the operations needed for an answer
Explanation
A concrete question motivates the analyst to search for and combine filtering, grouping, aggregation, sorting, and plotting operations.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.