Python Chapter 15
What should be done regardless of the method used for missing data?
(a) and (b)
What does the dtypes() method return for a pandas DataFrame?
The data types of the columns in the DataFrame
Which parameter in the fillna() function specifies the method to use for filling missing values?
method
Which parameter of the replace() function in Python's pandas library is used to specify the values that will be replaced?
to_replace
Which method can be used for replacement when the to_replace parameter is a scalar, list, or tuple, and the value parameter is None?
All of the options
What is the default value of the inplace parameter in the replace() function?
False
Which method involves imputing missing values with the overall mean of the feature?
Mean replacement
What does the fillna() function in pandas return when the inplace parameter is set to True?
None
For numeric columns, pandas uses what value to represent missing data? (Select the best, most complete, answer)
Python None and NumPy NaN
According to Tabachnick and Fidell (2019), which method is recommended for dealing with missing data when only a few records/cases have missing data and they appear to be a random subsample of the whole sample?
Remove any records that contain missing data
What does the replace() method do in pandas?
Replaces specific values in a DataFrame with other specified values
If the limit parameter is set to a value greater than 0 in the fillna() function, what does it indicate?
The maximum number of consecutive NaN values to forward/backward fill
What does the isnull() function in Python return?
True if the value is missing, False otherwise.
Which method involves replacing missing values with an educated guess based on the analyst's expertise in the area?
Use prior knowledge to estimate the value
Which book was referenced in the reading and/or coding notebooks as a reference for dealing with missing data?
Using Multivariate Statistics" by Tabachnick & Fidell (2019)
Which method is used to replace missing values in a pandas DataFrame with a specified value? (Select the most efficient method)
filna()
What method can be used to locate DataFrame cells with missing data? (Select the best, most complete, answer)
isna()
Which method is used to check whether a value in a pandas DataFrame is null or missing?
isnull()
