go beyond the numbers: translate data into insights coursera weekly challenge 2 answers

Test your knowledge: Discovering is the beginning of an investigation

1. Fill in the blank: Tabular, XML, CSV, and J-SON files are all types of _____.

  • data types
  • spreadsheets
  • Python functions
  • data formats

2. It is a data professionalโ€™s responsibility to understand data sources because the dataโ€™s origin affects its reliability.

  • True
  • False

3. Which Python method returns the total number of entries and the data types of individual data entries in a dataset?

  • Info()
  • Number()
  • Return()
  • Total()

Test your knowledge: Understand data format

4. Which of the following statements will convert the time column into a datetime data type?

  • df[โ€˜time โ€˜] = datetime(df[โ€˜timeโ€™])
  • df[โ€˜time โ€˜] = pd.to_datetime(df[โ€˜time โ€˜])
  • df[โ€˜time โ€˜] = pd.to_datetime(โ€˜timeโ€™)
  • df[โ€˜time โ€˜] = pd.to_time (df[โ€˜datetimeโ€™])

5. What Python method formats data into a new string representing date and time using a date, time, or datetime object?

  • Strftime()
  • Fig.show()
  • Head()
  • Div()

6. A data professional is creating a bar chart in Python. To label the y-axis Sales to Date, they would use the following statement: ylabel('Sales to Date').

  • True
  • False

Test your knowledge: Create structure from raw data

7. Fill in the blank: Grouping is a structuring method that enables data professionals to _____ individual observations of a variable into different categories or classes.

  • classify
  • rank
  • aggregate
  • disperse

8. Which of the following Python statements will create a list called grade_order that starts with Preschool?

  • order = [โ€˜Preschool_Gradeโ€™, โ€˜Kindergarten_Gradeโ€™, โ€˜Elementary School_Gradeโ€™, โ€˜Middle School_Gradeโ€™, โ€˜High School_Gradeโ€™]
  • grade_order (โ€˜Preschoolโ€™, โ€˜Kindergartenโ€™, โ€˜Elementary Schoolโ€™, โ€˜Middle Schoolโ€™, โ€˜High Schoolโ€™)
  • order_grade = [โ€˜Preschoolโ€™, โ€˜Kindergartenโ€™, โ€˜Elementary Schoolโ€™, โ€˜Middle Schoolโ€™, โ€˜High Schoolโ€™]
  • grade_order = [โ€˜Preschoolโ€™, โ€˜Kindergartenโ€™, โ€˜Elementary Schoolโ€™, โ€˜Middle Schoolโ€™, โ€˜High Schoolโ€™]

9. A data professional can use the concat function to join two or more dataframes.

  • True
  • False

Weekly challenge 2

10. What are some strategies data professionals use to understand the source of a dataset? Select all that apply.

  • Request relevant information from the data owners.
  • Ensure data supports the data professionalโ€™s hypothesis.
  • Investigate whether the data originator has any financial stake in the dataset.
  • Confirm the data owners have experience collecting data.

11. Fill in the blank: A data storage file saved in a JavaScript format, also known as a _____ file, may contain nested objects.

  • JPG
  • spreadsheet
  • J-SON
  • CSV

12. What type of data is gathered from inside a companyโ€™s own organization?

  • Second-party
  • Fourth-party
  • Third-party
  • First-party

13. Which of the following statements correctly uses the head() function to return the first 25 rows of a dataset?

  • df.head(rows=25)
  • df.head(25)
  • df.head(25.df)
  • head=25

14. Which of the following statements will assign the name Kuwait Museums to a bar graph in Python?

  • plt.name(โ€œKuwait Museumsโ€)
  • plt.title(โ€œKuwait Museumsโ€)
  • plt.xlabel(โ€œKuwait Museumsโ€)
  • plt.show(โ€œKuwait Museumsโ€)

15. Fill in the blank: The Python function fig.show() is used to render a _____ of a plot.

  • dashboard
  • mirror image
  • graphic
  • template

16. Which structuring method selects a smaller part of a dataset based on specified parameters, then uses it for analysis?

  • Grouping
  • Organizing
  • Sorting
  • Filtering

17. Fill in the blank: A box plot is a data visualization that depicts the spread, skew, and _____ of groups of values within quartiles.

  • intensity
  • speed
  • locality
  • timing

18. What are some strategies data professionals use to understand the source of a dataset? Select all that apply.

  • Determine where the data originally came from.
  • Confirm the original data owner has no financial stake in the dataโ€™s output.
  • Reduce outliers by ensuring data comes from a small sample.
  • Request relevant information from the team members who supplied the data.

19. What are some of the benefits of J-SON files for data professionals? Select all that apply.

  • Small message size
  • Readability in almost any programming language
  • Easily distinguish between strings and numbers
  • Eliminate nested objects within the files

20. Which of the following statements correctly uses the head() function to return the first 10 rows of a dataset?

  • df.head(rows=10)
  • df.head(10)
  • df.head(10.df)
  • head=10

21. Which of the following statements will assign the name Chicago Neighborhoods to a bar graph in Python?

  • plt.name(โ€œChicago Neighborhoodsโ€)
  • plt.show(โ€œChicago Neighborhoodsโ€)
  • plt.xlabel(โ€œChicago Neighborhoodsโ€)
  • plt.title(โ€œChicago Neighborhoodsโ€)

22. Which Python function is used to render a graphic of a plot called graph?

  • show.pt(graph)
  • graph.display()
  • graph.show()
  • plot.graph()

23. Which structuring method combines two different data frames along a specified starting column?

  • Grouping
  • Filtering
  • Merging
  • Sorting

24. Fill in the blank: A box plot is a data visualization that depicts the locality, skew, and _____ of groups of values within quartiles.

  • height
  • area
  • temperature
  • spread

25. What type of data is gathered outside of an organization, but directly from the original source?

  • Second-party
  • Fourth-party
  • First-party
  • Third-party

26. Which structuring method aggregates individual observations of a variable into buckets?

  • Grouping
  • Filtering
  • Merging
  • Slicing

27. Which of the following statements correctly uses the head() function to return the first 5 rows of a dataset?

  • df.head(rows=5)
  • df.head(5)
  • df.head(5.df)
  • head=5

28. Which of the following statements will assign the name Salzburg Restaurants to a bar graph in Python?

  • plt.xlabel(โ€œSalzburg Restaurantsโ€)
  • plt.name(โ€œSalzburg Restaurantsโ€)
  • plt.show(โ€œSalzburg Restaurantsโ€)
  • plt.title(โ€œSalzburg Restaurantsโ€)

Leave a Reply