NEW
Font size
WorksheetsNumpy_Pandas_Matplotlib
Total questions: 37
Worksheet time: 37mins
In simple linear regression, there is one dependent and one independent variable.
There is one dependent and one independent variable
There are multiple independent variables
There are multiple dependent variables
None of the above
Ravel is used to convert 2D array into 1D array.
To convert 1D array into 2D array
To convert 2D array into 1D array
It is used for fancy indexing
None of the above
Which of the following library used for implementation of ML Algorithm?
Sklearn
Seaborn
Pandas
Matplot
Histogram is used to check the distribution of data.
To check the distribution of data
To normalize the data
To standardize the data
None of the Above
How you check the spread of the data?
Variance
Std. Deviation
IQR
All of the above
How can we change the shape of Numpy array in python?
Shape()
Reshape()
Ord()
Change()
Which of the following library used for data analysis?
Sklearn
Seaborn
Pandas
Matplot
Which of the following is used to drop duplicate records in pandas?
df.drop_duplicates()
df.drop()
df.drop_duplicate()
df.remove()
How to convert data in data frame to numpy array?
values
arange
reshape
ravel
Which of the property of pandas is used to convert the data in numpy array?
ndim
value
values
shape
Which of the following used to check the statistical summary?
ndim
describe
series
dataFrame
Which of the following is used for imputation of numeric continuous data?
Mean
Mode
Median
None of the above
Which of the following library is used for data preprocessing?
matplotlib
seaborn
pandas
scipy
Which of the following is used for imputation of numerical discrete data?
Mean
Mode
Median
None of the above
Which of the following library handles imputation of categorical data?
Sklearn
Seaborn
Pandas
Matplot
Heatmap is used to check the correlation among feature and label.
To check the correlation among feature and label
To visualize the data
To check the outliers
None of the above
Which of the following is used for imputation of categorical data?
Mean
Mode
Median
None of the above
Which of the following methods is used to read a CSV file in pandas?
pd.read_csv()
pd.read()
pd.readfile()
pd.load_csv()
In NumPy, which function is used to create an array of evenly spaced values within a given range?
linspace()
arange()
range()
spacing()
Which of the following pandas functions is used to combine two data frames along columns?
pd.concat()
pd.merge()
pd.join()
pd.combine()
Which NumPy function returns the indices of non-zero elements?
np.where()
np.nonzero()
np.argmax()
np.argwhere()
Which pandas method removes missing values?
dropna()
fillna()
replace()
remove()
Which of the following is true about .loc[] in pandas?
Selects rows/columns by label
Selects rows/columns by integer position
Works only for numeric indexes
None of the above
Which NumPy method is used to get the shape of an array?
shape
len()
size
reshape()
Which pandas function is used to merge datasets similar to SQL join?
pd.concat()
pd.merge()
pd.append()
pd.combine()
Which NumPy function is used to compute the mean along a given axis?
np.avg()
np.mean()
np.median()
np.sum()
Which parameter in pd.read_csv() is used to treat a column as the index?
index_col
col_index
primary_key
id_col
Which of the following is used to sort a pandas DataFrame by column values?
sort_values()
sort_index()
order_by()
sort()
Which NumPy function is used to find the maximum value of an array?
np.max()
np.maximum()
np.argmax()
np.maxvalue()
What does df.T do in pandas?
Converts DataFrame into tuple
Transposes the DataFrame
Converts DataFrame into text
None of the above
Which method is used to check the data type of each column in a pandas DataFrame?
dtypes
types()
dtype()
datatype()
In NumPy, what does axis=0 represent in aggregation functions?
Operate across rows
Operate across columns
Operate diagonally
None of the above
Which function is used to create an identity matrix in NumPy?
np.identity()
np.eye()
Both a & b
np.ones()
Which pandas method is used to replace NaN values with a specific value?
fillna()
dropna()
replace()
setna()
What does np.argsort() return?
Sorted array values
Indices that would sort the array
Maximum index value
None of the above
Which of the following in pandas is used for group operations like SQL GROUP BY?
groupby()
aggregate()
merge()
concat()
In NumPy, which method is used to flatten a multi-dimensional array?
flatten()
reshape(-1)
ravel()
All of the above
