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โ)