<jupyter_start><jupyter_text>Practice Exercises 2This worksheet will cover the same material that was taught in Tutorial 2. * Plotting with Matplotlib and Seaborn    * Scatter plots, Line plots, Bar graphs, & Histograms    * Including titles, axes labels, and color-codingBe ready, the questions that follow will test your knowledge on each of the lesssons covered. Each exercise will ask the user to select or code the correct answer. If the user fails to answer the question correctly, a hint will appear followed my the correct answer.  Exercise 1Import the pandas and altair packages as we need them for the practice exercises<jupyter_code># Write Your Code Here:<jupyter_output><empty_output><jupyter_text>Check your answer by running the below chuck!<jupyter_code># This chuck will check if your input is correct
check.answer_1()<jupyter_output><empty_output><jupyter_text>Exercise 2Print the General Esports Dataset<jupyter_code># Write Your Code Here:<jupyter_output><empty_output><jupyter_text>Check your answer by running the below chuck!<jupyter_code># This chuck will check if your input is correct
check.answer_2(answer2)<jupyter_output><empty_output><jupyter_text>Exercise 3Create a line plot that showcases which year in gaming has had the most tournaments. Make sure you include titles, axes labels, and color-coding.<jupyter_code># Write Your Code Here:<jupyter_output><empty_output><jupyter_text>Check your answer by running the below chuck!<jupyter_code># This chuck will check if your input is correct
check.answer_3(answer3)<jupyter_output><empty_output><jupyter_text>Exercise 4True Or False: It is more convenient to present this type of data through a histogram than a line plot > A. True B. False<jupyter_code># Type in the letter that corresponds to your answer within the quotation marks.
answer4 = ""

### Your answer choice
answer4<jupyter_output><empty_output><jupyter_text>Check your answer by running the below chuck!<jupyter_code># This chuck will check if your input is correct
check.answer_4(answer4)<jupyter_output><empty_output><jupyter_text>Exercise 5What graph will we be creating for the next question: >A. Bar Graph B. HistogramC. Scatter PlotD. Line Plot<jupyter_code># Type in the letter that corresponds to your answer within the quotation marks.
answer5 = ""

### Your answer choice
answer5<jupyter_output><empty_output><jupyter_text>Check your answer by running the below chuck!<jupyter_code># This chuck will check if your input is correct
check.answer_5(answer5)<jupyter_output><empty_output><jupyter_text>Exercise 6Rearrange the lines of code given below to subset the data we are interested in visualizing (Game, TotalEarnings, OnlineEarnings), drop missing values, and round out the Total Earnings and Online Earnings to the nearest millonth.<jupyter_code># Write code here

Check your answer by running the below chuck!
# This chuck will check if your input is correct
check.answer_6(answer6)<jupyter_output><empty_output><jupyter_text>Exercise 7Fill in the blank: ______ in the lines of code given below to create a scatterplot with the Year in the x-axis and the Total Earnings in the y-axis to create a visualization that we can use to explore whether there is a relationship between the year the game was released and the amount of earnings that are given based on a specific year in gaming.Update the code here:<jupyter_code># Write Your Code Here:<jupyter_output><empty_output><jupyter_text>Check your answer by running the below chuck!<jupyter_code># This chuck will check if your input is correct
check.answer_7(answer7)<jupyter_output><empty_output><jupyter_text>Exercise 8Choose a statement that best reflects the data that was just created:> A. No relationship B. Positive relationship C. Negative relationship<jupyter_code># Type in the letter that corresponds to your answer within the quotation marks.
answer8 = ""

### Your answer choice
answer8<jupyter_output><empty_output><jupyter_text>Check your answer by running the below chuck!<jupyter_code># This chuck will check if your input is correct
check.answer_8(answer8)<jupyter_output><empty_output><jupyter_text>Exercise 9Which type of plot/graph is best for presenting nominal data:  > A. Scatterplot B. Line Plot C. Bar Plot D. All Of The Above<jupyter_code># Type in the letter that corresponds to your answer within the quotation marks.
answer9 = ""

### Your answer choice
answer9<jupyter_output><empty_output><jupyter_text>Check your answer by running the below chuck!<jupyter_code># This chuck will check if your input is correct
check.answer_9(answer9)<jupyter_output><empty_output><jupyter_text>Exercise 10Which type of plot/graph is best for presenting percentages:> A. Box Plot B. Pie PlotC. HistogramD. None Of The Above<jupyter_code># Type in the letter that corresponds to your answer within the quotation marks.
answer10 = ""

### Your answer choice
answer10<jupyter_output><empty_output><jupyter_text>Check your answer by running the below chuck!<jupyter_code># This chuck will check if your input is correct
check.answer_10(answer10)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.06178893683797568, 'fraction_numerical': 0.009023146331894862, 'mean_word_length': 6.3261494252873565, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 82, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '19', 'dir': 'jupyter-structured-clean-dedup', 'id': '430730', 'license': 'MIT', 'n_tokens_mistral': 1508, 'n_tokens_neox': 1451, 'n_words': 613, 'path': 'code/2 Data Visualization/Practice Exercises 2.ipynb', 'repo_name': 'Jupyter-Auto-grading-Tutorials/CAP-4786-Jupyter-Auto-grading-Tutorials', 'size': '5098'}