Skip to content
Open
48 changes: 48 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

# Created by https://www.toptal.com/developers/gitignore/api/jupyternotebooks,macos
# Edit at https://www.toptal.com/developers/gitignore?templates=jupyternotebooks,macos

### JupyterNotebooks ###
# gitignore template for Jupyter Notebooks
# website: http://jupyter.org/

.ipynb_checkpoints
*/.ipynb_checkpoints/*

# IPython
profile_default/
ipython_config.py

# Remove previous ipynb_checkpoints
# git rm -r .ipynb_checkpoints/

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# End of https://www.toptal.com/developers/gitignore/api/jupyternotebooks,macos
260 changes: 260 additions & 0 deletions your-project/AirQualityDataset.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,260 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"id": "streaming-stereo",
"metadata": {
"ExecuteTime": {
"end_time": "2021-03-30T15:53:34.467216Z",
"start_time": "2021-03-30T15:53:34.316194Z"
}
},
"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>Station</th>\n",
" <th>Air Quality</th>\n",
" <th>Longitude</th>\n",
" <th>Latitude</th>\n",
" <th>O3 Hour</th>\n",
" <th>O3 Quality</th>\n",
" <th>O3 Value</th>\n",
" <th>NO2 Hour</th>\n",
" <th>NO2 Quality</th>\n",
" <th>NO2 Value</th>\n",
" <th>PM10 Hour</th>\n",
" <th>PM10 Quality</th>\n",
" <th>PM10 Value</th>\n",
" <th>Generated</th>\n",
" <th>Date Time</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Barcelona - Sants</td>\n",
" <td>Good</td>\n",
" <td>2.1331</td>\n",
" <td>41.3788</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>0h</td>\n",
" <td>Good</td>\n",
" <td>84.0</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>01/11/2018 0:00</td>\n",
" <td>1541027104</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Barcelona - Eixample</td>\n",
" <td>Moderate</td>\n",
" <td>2.1538</td>\n",
" <td>41.3853</td>\n",
" <td>0h</td>\n",
" <td>Good</td>\n",
" <td>1.0</td>\n",
" <td>0h</td>\n",
" <td>Moderate</td>\n",
" <td>113.0</td>\n",
" <td>0h</td>\n",
" <td>Good</td>\n",
" <td>36.0</td>\n",
" <td>01/11/2018 0:00</td>\n",
" <td>1541027104</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>Barcelona - Gràcia</td>\n",
" <td>Good</td>\n",
" <td>2.1534</td>\n",
" <td>41.3987</td>\n",
" <td>0h</td>\n",
" <td>Good</td>\n",
" <td>10.0</td>\n",
" <td>0h</td>\n",
" <td>Good</td>\n",
" <td>73.0</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>01/11/2018 0:00</td>\n",
" <td>1541027104</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Barcelona - Ciutadella</td>\n",
" <td>Good</td>\n",
" <td>2.1874</td>\n",
" <td>41.3864</td>\n",
" <td>0h</td>\n",
" <td>Good</td>\n",
" <td>2.0</td>\n",
" <td>0h</td>\n",
" <td>Good</td>\n",
" <td>86.0</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>01/11/2018 0:00</td>\n",
" <td>1541027104</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Barcelona - Vall Hebron</td>\n",
" <td>Good</td>\n",
" <td>2.1480</td>\n",
" <td>41.4261</td>\n",
" <td>0h</td>\n",
" <td>Good</td>\n",
" <td>7.0</td>\n",
" <td>0h</td>\n",
" <td>Good</td>\n",
" <td>69.0</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>01/11/2018 0:00</td>\n",
" <td>1541027104</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Station Air Quality Longitude Latitude O3 Hour \\\n",
"0 Barcelona - Sants Good 2.1331 41.3788 NaN \n",
"1 Barcelona - Eixample Moderate 2.1538 41.3853 0h \n",
"2 Barcelona - Gràcia Good 2.1534 41.3987 0h \n",
"3 Barcelona - Ciutadella Good 2.1874 41.3864 0h \n",
"4 Barcelona - Vall Hebron Good 2.1480 41.4261 0h \n",
"\n",
" O3 Quality O3 Value NO2 Hour NO2 Quality NO2 Value PM10 Hour PM10 Quality \\\n",
"0 NaN NaN 0h Good 84.0 NaN NaN \n",
"1 Good 1.0 0h Moderate 113.0 0h Good \n",
"2 Good 10.0 0h Good 73.0 NaN NaN \n",
"3 Good 2.0 0h Good 86.0 NaN NaN \n",
"4 Good 7.0 0h Good 69.0 NaN NaN \n",
"\n",
" PM10 Value Generated Date Time \n",
"0 NaN 01/11/2018 0:00 1541027104 \n",
"1 36.0 01/11/2018 0:00 1541027104 \n",
"2 NaN 01/11/2018 0:00 1541027104 \n",
"3 NaN 01/11/2018 0:00 1541027104 \n",
"4 NaN 01/11/2018 0:00 1541027104 "
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import pandas as pd\n",
"\n",
"data = pd.read_csv('../datasets/2.-Urban-Environment/air-quality-nov-2017.csv')\n",
"\n",
"data.head()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "published-restaurant",
"metadata": {},
"outputs": [],
"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.8.2"
},
"latex_envs": {
"LaTeX_envs_menu_present": true,
"autoclose": false,
"autocomplete": true,
"bibliofile": "biblio.bib",
"cite_by": "apalike",
"current_citInitial": 1,
"eqLabelWithNumbers": true,
"eqNumInitial": 1,
"hotkeys": {
"equation": "Ctrl-E",
"itemize": "Ctrl-I"
},
"labels_anchors": false,
"latex_user_defs": false,
"report_style_numbering": false,
"user_envs_cfg": false
},
"varInspector": {
"cols": {
"lenName": 16,
"lenType": 16,
"lenVar": 40
},
"kernels_config": {
"python": {
"delete_cmd_postfix": "",
"delete_cmd_prefix": "del ",
"library": "var_list.py",
"varRefreshCmd": "print(var_dic_list())"
},
"r": {
"delete_cmd_postfix": ") ",
"delete_cmd_prefix": "rm(",
"library": "var_list.r",
"varRefreshCmd": "cat(var_dic_list()) "
}
},
"types_to_exclude": [
"module",
"function",
"builtin_function_or_method",
"instance",
"_Feature"
],
"window_display": false
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Loading