<jupyter_start><jupyter_text>Ex - GroupBy  Introduction:GroupBy can be summarizes as Split-Apply-Combine.Special thanks to: https://github.com/justmarkham for sharing the dataset and materials.Check out this [Diagram](http://i.imgur.com/yjNkiwL.png)   Step 1. Import the necessary libraries<jupyter_code>import numpy as np
import pandas as pd<jupyter_output><empty_output><jupyter_text>Step 2. Import the dataset from this [address](https://raw.githubusercontent.com/justmarkham/DAT8/master/data/drinks.csv).   Step 3. Assign it to a variable called drinks.<jupyter_code>drinks = pd.read_csv('https://raw.githubusercontent.com/justmarkham/DAT8/master/data/drinks.csv')<jupyter_output><empty_output><jupyter_text>Step 4. Which continent drinks more beer on average?<jupyter_code>drinks.head()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11084043848964677, 'fraction_numerical': 0.007308160779537149, 'mean_word_length': 6.611111111111111, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 3, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '211264', 'license': 'MIT', 'n_tokens_mistral': 278, 'n_tokens_neox': 270, 'n_words': 58, 'path': '1. pandas/03_Grouping/Alcohol_Consumption/.ipynb_checkpoints/Exercise-checkpoint.ipynb', 'repo_name': 'HaoyangHan/codingExercise', 'size': '821'}