You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
209 lines
5.9 KiB
Plaintext
209 lines
5.9 KiB
Plaintext
1 year ago
|
{
|
||
|
"cells": [
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"# Importing data"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 2,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/html": [
|
||
|
"<div>\n",
|
||
|
"<style scoped>\n",
|
||
|
" .dataframe tbody tr th:only-of-type {\n",
|
||
|
" vertical-align: middle;\n",
|
||
|
" }\n",
|
||
|
"\n",
|
||
|
" .dataframe tbody tr th {\n",
|
||
|
" vertical-align: top;\n",
|
||
|
" }\n",
|
||
|
"\n",
|
||
|
" .dataframe thead th {\n",
|
||
|
" text-align: right;\n",
|
||
|
" }\n",
|
||
|
"</style>\n",
|
||
|
"<table border=\"1\" class=\"dataframe\">\n",
|
||
|
" <thead>\n",
|
||
|
" <tr style=\"text-align: right;\">\n",
|
||
|
" <th></th>\n",
|
||
|
" <th>sepal-length</th>\n",
|
||
|
" <th>sepal-width</th>\n",
|
||
|
" <th>petal-length</th>\n",
|
||
|
" <th>petal-width</th>\n",
|
||
|
" <th>class</th>\n",
|
||
|
" </tr>\n",
|
||
|
" </thead>\n",
|
||
|
" <tbody>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>0</th>\n",
|
||
|
" <td>5.1</td>\n",
|
||
|
" <td>3.5</td>\n",
|
||
|
" <td>1.4</td>\n",
|
||
|
" <td>0.2</td>\n",
|
||
|
" <td>Iris-setosa</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>1</th>\n",
|
||
|
" <td>4.9</td>\n",
|
||
|
" <td>3.0</td>\n",
|
||
|
" <td>1.4</td>\n",
|
||
|
" <td>0.2</td>\n",
|
||
|
" <td>Iris-setosa</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>2</th>\n",
|
||
|
" <td>4.7</td>\n",
|
||
|
" <td>3.2</td>\n",
|
||
|
" <td>1.3</td>\n",
|
||
|
" <td>0.2</td>\n",
|
||
|
" <td>Iris-setosa</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>3</th>\n",
|
||
|
" <td>4.6</td>\n",
|
||
|
" <td>3.1</td>\n",
|
||
|
" <td>1.5</td>\n",
|
||
|
" <td>0.2</td>\n",
|
||
|
" <td>Iris-setosa</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>4</th>\n",
|
||
|
" <td>5.0</td>\n",
|
||
|
" <td>3.6</td>\n",
|
||
|
" <td>1.4</td>\n",
|
||
|
" <td>0.2</td>\n",
|
||
|
" <td>Iris-setosa</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>5</th>\n",
|
||
|
" <td>5.4</td>\n",
|
||
|
" <td>3.9</td>\n",
|
||
|
" <td>1.7</td>\n",
|
||
|
" <td>0.4</td>\n",
|
||
|
" <td>Iris-setosa</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>6</th>\n",
|
||
|
" <td>4.6</td>\n",
|
||
|
" <td>3.4</td>\n",
|
||
|
" <td>1.4</td>\n",
|
||
|
" <td>0.3</td>\n",
|
||
|
" <td>Iris-setosa</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>7</th>\n",
|
||
|
" <td>5.0</td>\n",
|
||
|
" <td>3.4</td>\n",
|
||
|
" <td>1.5</td>\n",
|
||
|
" <td>0.2</td>\n",
|
||
|
" <td>Iris-setosa</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>8</th>\n",
|
||
|
" <td>4.4</td>\n",
|
||
|
" <td>2.9</td>\n",
|
||
|
" <td>1.4</td>\n",
|
||
|
" <td>0.2</td>\n",
|
||
|
" <td>Iris-setosa</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>9</th>\n",
|
||
|
" <td>4.9</td>\n",
|
||
|
" <td>3.1</td>\n",
|
||
|
" <td>1.5</td>\n",
|
||
|
" <td>0.1</td>\n",
|
||
|
" <td>Iris-setosa</td>\n",
|
||
|
" </tr>\n",
|
||
|
" </tbody>\n",
|
||
|
"</table>\n",
|
||
|
"</div>"
|
||
|
],
|
||
|
"text/plain": [
|
||
|
" sepal-length sepal-width petal-length petal-width class\n",
|
||
|
"0 5.1 3.5 1.4 0.2 Iris-setosa\n",
|
||
|
"1 4.9 3.0 1.4 0.2 Iris-setosa\n",
|
||
|
"2 4.7 3.2 1.3 0.2 Iris-setosa\n",
|
||
|
"3 4.6 3.1 1.5 0.2 Iris-setosa\n",
|
||
|
"4 5.0 3.6 1.4 0.2 Iris-setosa\n",
|
||
|
"5 5.4 3.9 1.7 0.4 Iris-setosa\n",
|
||
|
"6 4.6 3.4 1.4 0.3 Iris-setosa\n",
|
||
|
"7 5.0 3.4 1.5 0.2 Iris-setosa\n",
|
||
|
"8 4.4 2.9 1.4 0.2 Iris-setosa\n",
|
||
|
"9 4.9 3.1 1.5 0.1 Iris-setosa"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 2,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"from pandas import read_csv\n",
|
||
|
"url = \"https://raw.githubusercontent.com/jbrownlee/Datasets/master/iris.csv\"\n",
|
||
|
"names = ['sepal-length', 'sepal-width', 'petal-length', 'petal-width', 'class']\n",
|
||
|
"dataset = read_csv(url, names=names)\n",
|
||
|
"dataset.head(10)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"**This is the part of code you have to solve and deliver as a part of your report.**\n",
|
||
|
"\n",
|
||
|
"# Statistical Summary\n",
|
||
|
"For this section you can create your own functions or also you can writte down the code as chunks to compute:\n",
|
||
|
"- Mean\n",
|
||
|
"- Number of elements per properti\n",
|
||
|
"- Standard deviation "
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"# Plots and data visualization\n",
|
||
|
"Make the next plots for data exploration and visulization:\n",
|
||
|
"- Box and Whiskers plot\n",
|
||
|
"- histogram plot\n",
|
||
|
"- scatter plot for sepal length and width\n",
|
||
|
"- scatter plot for petal length and width"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": []
|
||
|
}
|
||
|
],
|
||
|
"metadata": {
|
||
|
"kernelspec": {
|
||
|
"display_name": "Python 3",
|
||
|
"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.11.4"
|
||
|
},
|
||
|
"orig_nbformat": 4
|
||
|
},
|
||
|
"nbformat": 4,
|
||
|
"nbformat_minor": 2
|
||
|
}
|