MCQOPTIONS
Saved Bookmarks
This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Data Science knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Pandas follow the NumPy convention of raising an error when you try to convert something to a bool. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 2. |
Which of the following indexing capabilities is used as a concise means of selecting data from a pandas object? |
| A. | In |
| B. | ix |
| C. | ipy |
| D. | none of the mentioned |
| Answer» C. ipy | |
| 3. |
Which of the following is used for testing for membership in the list of column names? |
| A. | in |
| B. | out |
| C. | elseif |
| D. | none of the mentioned |
| Answer» B. out | |
| 4. |
Which of the following method is used for transforming a SparseSeries indexed by a MultiIndex to a scipy.sparse.coo_matrix? |
| A. | SparseSeries.to_coo() |
| B. | Series.to_coo() |
| C. | SparseSeries.to_cooser() |
| D. | None of the mentioned |
| Answer» B. Series.to_coo() | |
| 5. |
Which of the following list-like data structure is used for managing a dynamic collection of SparseArrays? |
| A. | SparseList |
| B. | GeoList |
| C. | SparseSeries |
| D. | All of the mentioned |
| Answer» B. GeoList | |
| 6. |
Which of the following is not an indexed object? |
| A. | SparseSeries |
| B. | SparseDataFrame |
| C. | SparsePanel |
| D. | None of the mentioned |
| Answer» E. | |
| 7. |
Which of the following is the base layer for all of the sparse indexed data structures? |
| A. | SArray |
| B. | SparseArray |
| C. | PyArray |
| D. | None of the mentioned |
| Answer» C. PyArray | |