Sail E0 Webinar

MCQs

Total Questions : 10
Question 1. Which of the following is implemented on DataFrame to compute the correlation between like-labeled Series contained in different DataFrame objects ?
  1.    corrwith
  2.    corwith
  3.    corwit
  4.    None of the Mentioned
 Discuss Question
Answer: Option A. -> corrwith


A score close to 1 means their tastes are very similar.


Question 2. Which of the following makes use of pandas and returns data in a Series or DataFrame ?
  1.    pandaSDMX
  2.    freedapi
  3.    OutPy
  4.    None of the Mentioned
 Discuss Question
Answer: Option B. -> freedapi


freedapi module requires a FRED API key that you can obtain for free on the FRED website.


Question 3. Which of the following takes a dict of dicts or a dict of array-like sequences and returns a DataFrame?
  1.    DataFrame.from_items
  2.    DataFrame.from_records
  3.    DataFrame.from_dict
  4.    All of the Mentioned
 Discuss Question
Answer: Option A. -> DataFrame.from_items


DataFrame.from_dict operates like the DataFrame constructor except for the orient parameter which is 'columns' by default.


Question 4. Which of the following library is similar to Pandas ?
  1.    NumPy
  2.    RPy
  3.    OutPy
  4.    None of the Mentioned
 Discuss Question
Answer: Option A. -> NumPy


NumPy is the fundamental package for scientific computing with Python.


Question 5. Which of the following method is used for transforming a SparseSeries indexed by a MultiIndex to a scipy.sparse.coo_matrix ?
  1.    SparseSeries.to_coo()
  2.    Series.to_coo()
  3.    SparseSeries.to_cooser()
  4.    None of the Mentioned
 Discuss Question
Answer: Option A. -> SparseSeries.to_coo()


Experimental api to transform between sparse pandas and scipy.sparse structures.


Question 6. Which of the following plots are used to check if a data set or time series is random ?
  1.    Lag
  2.    Random
  3.    Lead
  4.    None of the Mentioned
 Discuss Question
Answer: Option A. -> Lag


Random data should not exhibit any structure in the lag plot.


Question 7. Which of the following is used to generate an index with time delta ?
  1.    TimeIndex
  2.    TimedeltaIndex
  3.    LeadIndex
  4.    None of the Mentioned
 Discuss Question
Answer: Option B. -> TimedeltaIndex


Using TimedeltaIndex you can pass string-like, Timedelta, timedelta, or np.timedelta64 objects.


Question 8. Which of the following is prominent python "statistics and econometrics library ?
  1.    Bokeh
  2.    Seaborn
  3.    Statsmodels
  4.    None of the Mentioned
 Discuss Question
Answer: Option C. -> Statsmodels


Bokeh is a Python interactive visualization library for large datasets that natively uses the latest web technologies.


Question 9. Which of the following method produces a data ranking with ties being assigned the mean of the ranks for the group ?
  1.    rank
  2.    dense_rank
  3.    partition_rank
  4.    None of the Mentioned
 Discuss Question
Answer: Option A. -> rank


rank is also a DataFrame method.


Question 10. Which of the following works analogously to the form of the dict constructor ?
  1.    DataFrame.from_items
  2.    DataFrame.from_records
  3.    DataFrame.from_dict
  4.    All of the Mentioned
 Discuss Question
Answer: Option A. -> DataFrame.from_items


DataFrame.from_records takes a list of tuples or an ndarray with structured dtype.


Latest Videos

Latest Test Papers