Python Data Analysis
- 80Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
pd for working with tabular data is80 questions
- 1The Python library commonly imported as_____
pdfor working with tabular data is.Hint
This library provides the DataFrame and Series structures.
Answer
pandas
- 2The numerical computing library imported as_____
npis.Hint
Its name combines 'numerical' with 'Python.'
Answer
numpy
- 3The plotting library imported using_____
matplotlib.pyplotis assigned the alias.Hint
This conventional alias consists of the library initials.
Answer
plt
- 4The visualization library imported as_____
sns, especially useful for exploratory plots, is.Hint
It is built on top of Matplotlib and provides higher-level statistical graphics.
Answer
seaborn
- 5A Kaggle notebook is similar to a_____notebook because both allow code execution alongside plain-text descriptions.
Hint
This environment is widely used for interactive Python work.
Answer
Jupyter
- 6The Matplotlib style sheet selected in the tutorial is_____.
Hint
It is selected with
plt.style.use.Answer
ggplot
- 7The pandas option used to control how many DataFrame columns are displayed is_____.
Hint
It is set through
pd.set_option.Answer
max_columns
- 8The variable conventionally used in the tutorial to represent the loaded DataFrame is_____.
Hint
The name is an abbreviation for 'data frame.'
Answer
df
- 9The pandas function used to load a CSV file into a DataFrame is_____.
Hint
It is called as a method of pandas.
Answer
read_csv
- 10The loaded roller-coaster dataset initially contains_____rows and 56 columns.
Hint
This is the row count reported by the DataFrame shape after loading.
Answer
1087
- 11The DataFrame attribute that returns the number of rows and columns is_____.
Hint
It is accessed as
df.shape.Answer
shape
- 12The DataFrame method that displays the first rows is_____.
Hint
It is called as
df.head().Answer
head
- 13When called without an argument,_____
df.head()displays the firstrows.Hint
This is pandas' default preview size.
Answer
five
- 14To display the first 20 rows instead of the default preview, the number_____is passed to
head.Hint
The argument directly specifies how many rows to show.
Answer
20
- 15The DataFrame attribute used to list every column name is_____.
Hint
It is accessed as
df.columns.Answer
columns
- 16In pandas, each column of a DataFrame is represented as a_____.
Hint
It is pandas' one-dimensional labeled data structure.
Answer
Series
- 17The attribute used to inspect the data type of every DataFrame column is_____.
Hint
It is accessed as
df.dtypes.Answer
dtypes
- 18Columns containing text values are generally represented by the pandas data type_____.
Hint
This type appears frequently for string-like columns in the dataset.
Answer
object
- 19The DataFrame method that summarizes statistics for numeric columns is_____.
Hint
It is called as
df.describe().Answer
describe
- 20For the roller-coaster height column, the_____
describeoutput reports a mean of approximatelyfeet.Hint
This is the average height stated in the tutorial.
Answer
101
- 21The first data-preparation rule emphasized in the tutorial is to remove unwanted columns or rows before_____the remaining data.
Hint
This avoids spending effort on data that will not be used.
Answer
cleaning
- 22Selecting only specified columns from a DataFrame is called_____the data.
Hint
It creates a smaller selection from the original data.
Answer
subsetting
- 23To select multiple DataFrame columns by name, pandas uses a list inside_____brackets.
Hint
The syntax looks like
df[[...]].Answer
two
- 24The_____
dropmethod requiresaxis=1when the goal is to remove arather than a row.Hint
In pandas, axis 1 refers to the horizontal dimension.
Answer
column
- 25The method added after selecting columns to ensure the result is a new independent DataFrame is_____.
Hint
It prevents the result from being merely a reference to the original object.
Answer
copy
- 26After the tutorial's initial column selection, the dataset contains_____columns.
Hint
The row count remains 1,087 at this stage.
Answer
13
- 27The pandas function used to convert a date-like column into a datetime type is_____.
Hint
It is called as
pd.to_datetime.Answer
to_datetime
- 28The pandas function used to force a string-like numeric column into a numeric type is_____.
Hint
It is called as
pd.to_numeric.Answer
to_numeric
- 29The DataFrame method used to change column names is_____.
Hint
It is called with a
columnsargument.Answer
rename
- 30The mapping supplied to_____
df.rename(columns=...)pairs each old column name with itscolumn name.Hint
The mapping tells pandas what each name should become.
Answer
new
- 31The tutorial recommends avoiding_____in column names because they make names harder to work with.
Hint
The preferred names do not contain blank characters.
Answer
spaces
- 32The command used to identify missing or null values element by element is_____.
Hint
It is applied to the DataFrame before counting nulls.
Answer
isna
- 33To count missing values for each column, the Boolean result of_____
isnais followed by the method.Hint
In pandas,
Truevalues contribute one when summed.Answer
sum
- 34In the dataset, the status column has_____missing values.
Hint
This is the largest explicitly reported missing-value count.
Answer
213
- 35The two geographic columns reported as having missing values are latitude and_____.
Hint
Together they specify a location on Earth.
Answer
longitude
- 36The DataFrame method used to identify rows with duplicate values is_____.
Hint
It returns Boolean indicators for repeated rows.
Answer
duplicated
- 37By default,_____
duplicatedmarks the second and later occurrences as duplicates while ignoring theoccurrence.Hint
The original occurrence is retained as the reference record.
Answer
first
- 38The DataFrame selection method used to retrieve rows identified by a Boolean duplicate mask is_____.
Hint
It performs label-based selection.
Answer
loc
- 39The_____
subsetargument ofduplicatedrestricts duplicate detection to selected.Hint
For example, the tutorial checks duplicated coaster names.
Answer
columns
- 40The tutorial finds_____rows with duplicated coaster names.
Hint
This count is obtained after applying
duplicatedto the coaster name column.Answer
97
- 41The method used to filter the DataFrame by a string condition such as a particular coaster name is_____.
Hint
It accepts an expression describing the desired rows.
Answer
query
- 42To keep only the first occurrence of rows duplicated across selected columns, the tutorial applies the Boolean operator_____to the duplicate mask.
Hint
This operator reverses
TrueandFalsevalues in the mask.Answer
tilde
- 43The method used to renumber the index after removing duplicate rows is_____.
Hint
It restores a consecutive index sequence.
Answer
reset_index
- 44The argument_____
drop=Trueprevents the old index from being retained as a newcolumn.Hint
Without this argument, the previous labels become data.
Answer
index
- 45After duplicate removal, the dataset contains_____unique roller coasters.
Hint
The final row count is reported after resetting the index.
Answer
990
- 46Analyzing one feature at a time, including its distribution and outliers, is called_____analysis.
Hint
The prefix 'uni' means one.
Answer
univariate
- 47The Series method that counts how frequently each unique value occurs is_____.
Hint
It is especially useful for categorical values or repeated years.
Answer
value_counts
- 48In the year-introduced column, the most common year in the example is_____.
Hint
The tutorial reports 46 roller coasters introduced in this year.
Answer
1999
- 49The number of roller coasters introduced in 1999 in the example is_____.
Hint
This is the highest count shown by
value_counts.Answer
46
- 50A plot that displays category counts with rectangular bars is a_____plot.
Hint
The tutorial uses it to show the top years of coaster introductions.
Answer
bar
- 51A plot that divides continuous values into bins and displays the count in each bin is a_____.
Hint
It is useful for examining the distribution of coaster speeds.
Answer
histogram
- 52The tutorial uses_____bins to make the roller-coaster speed histogram easier to interpret.
Hint
The number is passed through the
binsargument.Answer
20
- 53A kernel density estimate plot is abbreviated as a_____plot.
Hint
The abbreviation appears as the value of the plotting kind.
Answer
KDE
- 54Compared with a histogram, a KDE plot is generally less cluttered because it shows a smoothed_____of the distribution.
Hint
Its name includes the phrase 'density estimate.'
Answer
density
- 55A plot used to compare two numeric features by placing one observation at each coordinate pair is a_____plot.
Hint
The tutorial compares speed and height with this plot.
Answer
scatter
- 56In the speed-versus-height example, speed is placed on the_____axis.
Hint
The horizontal axis is conventionally represented by this letter.
Answer
x
- 57In the same example, height is placed on the_____axis.
Hint
The vertical axis is conventionally represented by this letter.
Answer
y
- 58The pandas plotting function that prevents a Matplotlib object from being printed unnecessarily is_____.
Hint
It is called through the plotting library.
Answer
show
- 59The Seaborn function used to create a scatter plot is_____.
Hint
It receives arguments such as
x,y, anddata.Answer
scatterplot
- 60In a Seaborn scatter plot, the argument that assigns colors according to another variable is_____.
Hint
It produces different colored points for different categories or values.
Answer
hue
- 61The Seaborn function that compares several features pairwise in a matrix is_____.
Hint
It combines scatter plots and individual feature distributions.
Answer
pairplot
- 62In a pair plot, the diagonal usually displays the_____of each individual feature.
Hint
The off-diagonal cells show pairwise scatter plots.
Answer
distribution
- 63A pair plot organizes the pairwise feature comparisons in the form of a_____.
Hint
Rows and columns correspond to the selected features.
Answer
matrix
- 64The feature used as the color variable in the second pair-plot example is the type of_____used.
Hint
The categories include wood and steel.
Answer
material
- 65The pandas function used to calculate relationships among numeric columns is_____.
Hint
It returns a correlation DataFrame.
Answer
corr
- 66The reported correlation between coaster speed and height is approximately_____.
Hint
This positive value indicates a fairly strong relationship in the example.
Answer
0.73
- 67The Seaborn visualization used to display a correlation DataFrame with color intensity is a_____.
Hint
It represents larger or smaller values with different colors.
Answer
heat map
- 68The heat-map option that displays the numeric correlation values inside the colored cells is_____.
Hint
It is enabled with the
annotsetting.Answer
annotations
- 69The diagonal of a correlation matrix contains_____because every feature is perfectly correlated with itself.
Hint
A perfect correlation is represented numerically by this value.
Answer
ones
- 70The final stage of exploratory data analysis is to ask a_____that the dataset can help answer.
Hint
The tutorial asks which locations have the fastest roller coasters.
Answer
question
- 71To exclude rows whose location is recorded as_____
other, the tutorial filters with a condition stating that location does notother.Hint
The condition uses an inequality comparison.
Answer
equal
- 72The pandas method used to divide the remaining rows into groups by location is_____.
Hint
It creates one group for each location.
Answer
groupby
- 73The aggregation method that calculates several summary statistics in one operation is_____.
Hint
It receives a dictionary of columns and functions.
Answer
agg
- 74The statistic used to calculate the average coaster speed within each location is the_____.
Hint
It is the arithmetic average.
Answer
mean
- 75The statistic used to count the number of roller coasters at each location is the_____.
Hint
It measures how many observations belong to each group.
Answer
count
- 76To keep only locations with at least 10 roller coasters, the count is filtered using the condition greater than or_____to 10.
Hint
The minimum is inclusive.
Answer
equal
- 77The DataFrame method used to order locations by their average speed is_____.
Hint
It sorts according to a specified column.
Answer
sort_values
- 78The final visualization of average coaster speed by location is a horizontal_____plot.
Hint
Locations are represented by bars extending along the speed axis.
Answer
bar
- 79The location with the highest average coaster speed in the example is_____.
Hint
It appears above Cedar Point in the sorted result.
Answer
Busch Gardens
- 80The location identified as having the second-highest average coaster speed is_____.
Hint
It follows Busch Gardens in the result.
Answer
Cedar Point

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