0% found this document useful (0 votes)
40 views3 pages

Exercise Ipynb

This document outlines a step-by-step guide for analyzing a dataset related to alcohol consumption by continent using Python. It includes instructions for importing libraries, loading the dataset, and performing various statistical analyses on beer, wine, and spirit consumption. The document is structured as a Jupyter notebook with markdown and code cells for each step.

Uploaded by

amp230905
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views3 pages

Exercise Ipynb

This document outlines a step-by-step guide for analyzing a dataset related to alcohol consumption by continent using Python. It includes instructions for importing libraries, loading the dataset, and performing various statistical analyses on beer, wine, and spirit consumption. The document is structured as a Jupyter notebook with markdown and code cells for each step.

Uploaded by

amp230905
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

{

"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Ex - GroupBy"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Introduction:\n",
"### Step 1. Import the necessary libraries"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 2. Import the dataset from this
[address]([Link]
[Link]). "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 3. Assign it to a variable called drinks."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 4. Which continent drinks more beer on average?"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 5. For each continent print the statistics for wine consumption."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 6. Print the mean alcohol consumption per continent for every column"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 7. Print the median alcohol consumption per continent for every
column"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 8. Print the mean, min and max values for spirit consumption.\n",
"#### This time output a DataFrame"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
}
},
"nbformat": 4,
"nbformat_minor": 1
}

You might also like