Quiz Space

Tools in Data Science · End Term · 11 Dec 2022 · September 2022 term · Set ETD1-2

Question 26: A Pandas dataframe DF has a column named salary_range wh…

Question 26

+1 markOne correct option

A Pandas dataframe DF has a column named salary_range which contains the salary details of 10000 employees of a firm binned as medium, high, and very high. You are interested in finding out the number of employees in each category of salary_range. Which of the following commands will help you to achieve this goal?

  1. A

    DF[‘salary_range’].bin_count()

  2. B

    DF[‘salary_range’].value_counts()

  3. C

    DF$‘salary_range.bin_count()

  4. D

    DF$‘salary_range.value_counts()

Show answer

Correct answer

  • B

    DF[‘salary_range’].value_counts()

Question 26 of 46 in the IIT Madras BS Tools in Data Science (Tools in Data Science (TDS)) End Term paper sat on 11 Dec 2022, in the September 2022 term (IIT M DIPLOMA AN1 EXAM ETD1 11 Dec 2022). It carries 1 mark.

This question was also asked in

More questions from this paper

  1. Q1The dataset consists of geographic, demographic information about countries and their respective GDPs. You would like t…
  2. Q2Your project requires you to study the districts and their respective health indicators. You have a shapefile with you …
  3. Q3What are the two outputs provided by the Excel Azure Machine Learning plugin?
  4. Q4Provided below is an incomplete code snippet that enables you to compute distance between two locations. Choose the mos…
  5. Q5The dataset consists of year, annual cotton production, annual rainfall, loan interest rates and fuel prices. You would…
  6. Q6You would like to prepare your dataset before analysis. You choose python pandas-profiling library to perform explorato…
  7. Q7Comicgen is a useful tool in narrating data stories using comics. Which of the following is not a function of comicgen?
  8. Q8A very large Matrix A has a lot of zero entries in it.Which function from the scipy library is useful in efficient stor…
  9. Q9Which of the following libraries has functions and tools that are useful in the analysis of large graphs?
  10. Q10Kumu is a tool that allows you to:
  11. Q11Which of the following libraries has functions extensively written to extract data from Wikipedia pages?
  12. Q12A dataset provided to you has information about countries and respective populations. You plan to visualize the data in…
  13. Q13Logical calculations in tableau helps to determine if a certain condition is true or false. Is the following expression…
  14. Q14_ is helpful to understand the structure of (or inspect) a website before writing a scraping script.
  15. Q15_ library has tools to get a webpage’s html contents into Python.
  16. Q16Type of location (tourist/historic/etc.) can be retrieved using Nominatim in Python
  17. Q17Which of the following delimiters cannot be used in text-to-column function in Excel?
  18. Q18What is the y-axis in autocorrelation plot?
  19. Q19Which of the following tools cannot be used for anonymising the data?
  20. Q20For a one-time anonymization, static anonymization is sufficient. Is this statement true or false?
  21. Q21We are analyzing how much the number of lecture hours attended by students affects their exam scores. Which Excel funct…
  22. Q22We are analyzing how much the number of lecture hours attended by students affects their exam scores, we plan to run a …
  23. Q23We have a variable X, which can take values AA, BB, or CC. The first 4 values of this variable in a dataset are CC, AA,…
  24. Q24We have a variable X, which can take values AA, BB, or CC. The first 4 values of this variable in a dataset are CC, AA,…
  25. Q25k-means is typically influenced by the start values. What option in sklearn.cluster.KMeans helps reduce the impact?
  26. Q27Scikit-learn has a DecisionTreeClassifier module that is useful in building decision tree classifiers. Suppose, our dat…
  27. Q28Figure question
  28. Q29We are interested in fitting an ARIMA model to our time series data. Specifically, we are interested in a moving averag…
  29. Q30pycaret is a
  30. Q31subjectivity and polarity are two properties returned by the sentiment function of library:
  31. Q32A subjectivity score of 0.8 means that the text statement:
  32. Q33A polarity score of negative 0.5 means that the text statement:
  33. Q34You are working on a piece of code that classifies different fruits into its respective groups (citrus, berries, melons…
  34. Q35classification_report function from the sklearn.metrics module
  35. Q36csr_matrix from the scipy library:
  36. Q37Google Studio is a tool that allows you to
  37. Q38Which of the following tabs is used to identify API calls in the Inspect element in any browser?
  38. Q39Which of the following libraries is used to construct API urls?
  39. Q40The final output from the BBC Weather Location Service API is in JSON format:
  40. Q41Which among the following excel charts is the most suitable for detecting outliers in the data?
  41. Q42Provided below is a snippet of the code block of HTML tags from a website providing weather forecast. Your goal is to s…
  42. Q43The given piece of code extracts and displays details of 9 scheduled airlines in India. Identify which block of code ex…
  43. Q44Which among the following code blocks will get you the latitude and longitude of “IIT Madras”? Assume the Nominatim lib…
  44. Q45Provided below is a snapshot of the dataset which consists of movie reviews and respective labels. To compute the senti…
  45. Q46scikit-network package contains functions for (pick all correct sentences):