Home / Sikhar Chaudhary / Programming MCQs Solution
Programming Portal Solution
You will find all Programming Portal MCQs whose solution is updated by Sikhar Chaudhary
Q. Which method returns the index labels of a Series or DataFrame where values are True?
Q. Which pandas method is used to interpolate missing data in a DataFrame or Series?
Q. Which method is used to calculate the cumulative maximum in a Series or DataFrame?
Q. Which method transposes rows and columns in a DataFrame?
Q. Which method is used to convert a DataFrame to a CSV file?
Q. Which pandas method returns the rank of each element in a Series?
Q. Which method replaces NaN with a specified value in a DataFrame or Series?
Q. Which method removes all rows where any column is NaN in a DataFrame?
Q. Which pandas method is used to count the frequency of values in a Series?
Q. Which method is used to expand lists or dicts in a DataFrame column into separate columns?
Q. Which method converts a pandas DataFrame to an HTML table?
Q. Which pandas method is used to randomly sample rows from a DataFrame?
Q. Which pandas function is used to pivot a table with aggregation?
Q. Which method is used to calculate the cumulative product of elements over a DataFrame or Series?
Q. Which method is used to apply a function along a DataFrame axis?
Q. Which method is used to shift the data in a Series or DataFrame by a certain number of periods?
Q. Which method is used to get the covariance matrix of a DataFrame?
Q. Which method is used to get the correlation matrix of a DataFrame?
Q. Which pandas method converts a Series with categorical values to category dtype?
Q. Which method allows conditional selection of rows in a DataFrame?
Q. Which method returns a boolean DataFrame indicating where values are null?
Q. Which pandas method reshapes a DataFrame by pivoting the index and columns?
Q. Which method returns the number of non-null elements in each column or row?
Q. Which pandas function reads a JSON file into a DataFrame?
Q. Which method is used to join two DataFrames based on their index?
Q. Which method is used to drop a level from a MultiIndex in pandas?
Q. Which pandas method is used to create dummy/indicator variables?
Q. Which method returns the first non-null value in each column?
Q. Which method is used to get the maximum value of each column in a DataFrame?
Q. Which pandas method returns the cumulative sum over a DataFrame or Series?
Q. Which pandas method is used to change column names in-place?
Q. Which pandas function is used to read data from an Excel file?
Q. Which method is used to replace multiple values in a DataFrame at once?
Q. Which pandas method is used to apply a function element-wise on a Series?
Q. Which method is used to count non-null values in a DataFrame?
Q. Which method converts a DataFrame to a dictionary?
Q. Which pandas method is used to check for duplicate rows?
Q. Which method is used to get the shape of a DataFrame?
Q. Which pandas function is used to create a DataFrame from a dictionary of lists?
Q. Which method adds a new row or DataFrame to an existing DataFrame?
Q. Which method pivots the index into columns in pandas?
Q. Which method stacks the prescribed level(s) from columns to index?
Q. Which pandas function is used to check if elements in a DataFrame are null?
Q. Which method is used to set a column as the index of a DataFrame?
Q. Which method is used to change the data type of a column in pandas?
Q. Which method returns the correlation between columns of a DataFrame?
Q. Which method is used to create a copy of a DataFrame?
Q. Which method is used to replace values in a DataFrame or Series?
Q. Which method is used to apply a function to each element of a Series or DataFrame?
Q. Which function is used to get the index of a DataFrame?
Q. Which pandas method is used to remove duplicate rows from a DataFrame?
Q. Which method reshapes a DataFrame from wide to long format?
Q. Which function is used to count the occurrences of unique values in a Series?
Q. Which pandas method is used to combine two DataFrames along columns?
Q. Which method returns the data type of each column in a DataFrame?
Q. Which function is used to drop a column or row from a DataFrame?
Q. Which method is used to rename columns in a pandas DataFrame?
Q. Which function is used to concatenate two DataFrames along rows or columns?
Q. Which method converts a DataFrame to a NumPy array?
Q. Which method is used to check for missing values in a DataFrame?
Q. Which method is used to reset the index of a DataFrame?
Q. Which method is used to create a pivot table in pandas?
Q. Which function is used to get the number of unique values in a Series?
Q. Which method returns the unique values of a Series?
Q. Which function is used to merge two DataFrames on a key column?
Q. Which pandas function is used to group data?
Q. Which method is used to sort a DataFrame by column values?
Q. Which method is used to get summary statistics of a DataFrame?
Q. What is the difference between loc and iloc in pandas?
Q. Which method is used to fill missing values in pandas?
Q. Which method is used to remove missing values in pandas?
Q. Which of the following is used to select a column in a pandas DataFrame?
Q. What does the pandas function pd.concat() do?
Q. Which method is used to get the last n rows of a DataFrame?
Q. Which method is used to get the first n rows of a DataFrame?
Q. Which function is used to read a CSV file into a pandas DataFrame?
Q. Which of the following is used to create a Series in pandas?