InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 51. |
Which of the following takes a dict of dicts or a dict of array-like sequences and returns a DataFrame?(a) DataFrame.from_items(b) DataFrame.from_records(c) DataFrame.from_dict(d) All of the mentionedI have been asked this question by my school principal while I was bunking the class.My doubt is from Pandas Data Structure in chapter Data Analysis with Python of Data Science |
|
Answer» Correct choice is (a) DataFrame.from_items |
|
| 52. |
Point out the wrong statement.(a) A DataFrame is like a fixed-size dict in that you can get and set values by index label(b) Series can be be passed into most NumPy methods expecting an ndarray(c) A key difference between Series and ndarray is that operations between Series automatically align the data based on label(d) None of the mentionedI got this question in an interview for job.My question is taken from Pandas Data Structure in chapter Data Analysis with Python of Data Science |
|
Answer» Right answer is (a) A DATAFRAME is like a fixed-size DICT in that you can get and set values by INDEX LABEL |
|
| 53. |
Which of the following can potentially change the dtype of a series?(a) reindex_like(b) index_like(c) itime_like(d) none of the mentionedThis question was posed to me at a job interview.My doubt stems from Computational tools topic in section Data Analysis with Python of Data Science |
|
Answer» Correct ANSWER is (a) reindex_like |
|
| 54. |
Which of the following object has a method cov to compute covariance between series?(a) Series(b) DataFrame(c) Panel(d) None of the mentionedI have been asked this question in semester exam.My doubt stems from Computational tools in section Data Analysis with Python of Data Science |
|
Answer» RIGHT OPTION is (a) Series Best explanation: DataFrame has a method cov to compute PAIRWISE covariances among the series in the DataFrame, ALSO excluding NA/null values. |
|
| 55. |
Plots may also be adorned with error bars or tables.(a) True(b) FalseThis question was posed to me in semester exam.My doubt stems from Plotting in Python topic in division Data Analysis with Python of Data Science |
|
Answer» The correct option is (a) True |
|
| 56. |
Which of the following is not an indexed object?(a) SparseSeries(b) SparseDataFrame(c) SparsePanel(d) None of the mentionedI got this question during an interview.Enquiry is from Pandas in portion Data Analysis with Python of Data Science |
|
Answer» RIGHT choice is (d) None of the mentioned Explanation: SparseArray can be converted BACK to a REGULAR ndarray by CALLING to_dense. |
|
| 57. |
Which of the following provides a standard API for doing computations with MongoDB?(a) Blaze(b) Geopandas(c) FRED(d) All of the mentionedThis question was posed to me by my school teacher while I was bunking the class.This interesting question is from Pandas in chapter Data Analysis with Python of Data Science |
|
Answer» The CORRECT choice is (a) Blaze |
|
| 58. |
The integer format tracks only the locations and sizes of blocks of data.(a) True(b) FalseI had been asked this question in unit test.My question is taken from Pandas topic in portion Data Analysis with Python of Data Science |
|
Answer» RIGHT ANSWER is (b) False For explanation: The block format tracks only the LOCATIONS and sizes of blocks of data. |
|
| 59. |
Point out the wrong statement.(a) to_array. append can accept scalar values or any 2-dimensional sequence(b) Two kinds of SparseIndex are implemented(c) The integer format keeps an arrays of all of the locations where the data are not equal to the fill value(d) None of the mentionedThis question was posed to me in an interview for job.The question is from Pandas in portion Data Analysis with Python of Data Science |
|
Answer» CORRECT option is (a) to_array. append can accept scalar VALUES or any 2-dimensional SEQUENCE For explanation: to_array. append can accept scalar values or any 1-dimensional sequence. |
|
| 60. |
Which of the following library is similar to Pandas?(a) NumPy(b) RPy(c) OutPy(d) None of the mentionedThe question was asked during an internship interview.My query is from Pandas in division Data Analysis with Python of Data Science |
|
Answer» Right ANSWER is (a) NumPy |
|
| 61. |
Series is a one-dimensional labeled array capable of holding any data type.(a) True(b) FalseThe question was posed to me during an online interview.The query is from Pandas Data Structure topic in section Data Analysis with Python of Data Science |
|
Answer» The correct choice is (a) True |
|
| 62. |
__________ plots are used to visually assess the uncertainty of a statistic.(a) Lag(b) RadViz(c) Bootstrap(d) None of the mentionedThis question was posed to me during an online interview.This question is from Plotting in Python topic in portion Data Analysis with Python of Data Science |
|
Answer» RIGHT answer is (C) Bootstrap The BEST I can EXPLAIN: Resulting plots and histograms are what constitutes the bootstrap plot. |
|
| 63. |
Using _________ on categorical data will produce similar output to a Series or DataFrame of type string.(a) .desc()(b) .describe()(c) .rank()(d) none of the mentionedThis question was addressed to me during an internship interview.Question is from Time Deltas in chapter Data Analysis with Python of Data Science |
|
Answer» The correct answer is (b) .DESCRIBE() |
|
| 64. |
Numeric reduction operation for timedelta64[ns] will return _________ objects.(a) Timeseries(b) Timeplus(c) Timedelta(d) None of the mentionedThis question was addressed to me during an interview for a job.Question is from Time Deltas in section Data Analysis with Python of Data Science |
|
Answer» The CORRECT answer is (c) Timedelta |
|