{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd" ] }, { "cell_type": "code", "execution_count": 20, "metadata": {}, "outputs": [], "source": [ "df = pd.read_csv(r'C:\\Users\\ivan_pinar\\Dropbox\\Creación de MOCs\\MOC Master Python Análisis de Datos\\Datasets\\5.3\\PEATONES_2020.csv', encoding = \"ISO-8859-1\",delimiter=\";\",index_col=2,nrows=10000)" ] }, { "cell_type": "code", "execution_count": 21, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
FECHAHORAPEATONESNÚMERO_DISTRITODISTRITONOMBRE_VIALNÚMEROCÓDIGO_POSTALOBSERVACIONES_DIRECCIONLATITUDLONGITUD
IDENTIFICADOR
PERM_PEA02_PM0101/01/20200:00:004971CentroCalle Fuencarral2228004Calle peatonal Datos en prueba40,4220090-3,7008917
PERM_PEA02_PM0101/01/20200:15:002441CentroCalle Fuencarral2228004Calle peatonal Datos en prueba40,4220090-3,7008917
PERM_PEA02_PM0101/01/20200:30:001791CentroCalle Fuencarral2228004Calle peatonal Datos en prueba40,4220090-3,7008917
PERM_PEA02_PM0101/01/20200:45:001741CentroCalle Fuencarral2228004Calle peatonal Datos en prueba40,4220090-3,7008917
PERM_PEA02_PM0101/01/20201:00:001311CentroCalle Fuencarral2228004Calle peatonal Datos en prueba40,4220090-3,7008917
\n", "
" ], "text/plain": [ " FECHA HORA PEATONES NÚMERO_DISTRITO DISTRITO \\\n", "IDENTIFICADOR \n", "PERM_PEA02_PM01 01/01/2020 0:00:00 497 1 Centro \n", "PERM_PEA02_PM01 01/01/2020 0:15:00 244 1 Centro \n", "PERM_PEA02_PM01 01/01/2020 0:30:00 179 1 Centro \n", "PERM_PEA02_PM01 01/01/2020 0:45:00 174 1 Centro \n", "PERM_PEA02_PM01 01/01/2020 1:00:00 131 1 Centro \n", "\n", " NOMBRE_VIAL NÚMERO CÓDIGO_POSTAL \\\n", "IDENTIFICADOR \n", "PERM_PEA02_PM01 Calle Fuencarral 22 28004 \n", "PERM_PEA02_PM01 Calle Fuencarral 22 28004 \n", "PERM_PEA02_PM01 Calle Fuencarral 22 28004 \n", "PERM_PEA02_PM01 Calle Fuencarral 22 28004 \n", "PERM_PEA02_PM01 Calle Fuencarral 22 28004 \n", "\n", " OBSERVACIONES_DIRECCION LATITUD LONGITUD \n", "IDENTIFICADOR \n", "PERM_PEA02_PM01 Calle peatonal Datos en prueba 40,4220090 -3,7008917 \n", "PERM_PEA02_PM01 Calle peatonal Datos en prueba 40,4220090 -3,7008917 \n", "PERM_PEA02_PM01 Calle peatonal Datos en prueba 40,4220090 -3,7008917 \n", "PERM_PEA02_PM01 Calle peatonal Datos en prueba 40,4220090 -3,7008917 \n", "PERM_PEA02_PM01 Calle peatonal Datos en prueba 40,4220090 -3,7008917 " ] }, "execution_count": 21, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.head()" ] }, { "cell_type": "code", "execution_count": 22, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\n", "Index: 10000 entries, PERM_PEA02_PM01 to PERM_PEA04_PM01\n", "Data columns (total 11 columns):\n", "FECHA 10000 non-null object\n", "HORA 10000 non-null object\n", "PEATONES 10000 non-null int64\n", "NÚMERO_DISTRITO 10000 non-null int64\n", "DISTRITO 10000 non-null object\n", "NOMBRE_VIAL 10000 non-null object\n", "NÚMERO 10000 non-null int64\n", "CÓDIGO_POSTAL 10000 non-null int64\n", "OBSERVACIONES_DIRECCION 10000 non-null object\n", "LATITUD 10000 non-null object\n", "LONGITUD 10000 non-null object\n", "dtypes: int64(4), object(7)\n", "memory usage: 937.5+ KB\n" ] } ], "source": [ "df.info()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "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.7.3" } }, "nbformat": 4, "nbformat_minor": 2 }