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