Skip to content

Instantly share code, notes, and snippets.

View jjsantos01's full-sized avatar
๐Ÿ

Juan Santos Ochoa jjsantos01

๐Ÿ
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jjsantos01
jjsantos01 / parejas_homosexuales.ipynb
Last active August 31, 2021 17:38
Calcula hogares con parejas homosexuales a partir del censo 2020
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jjsantos01
jjsantos01 / geomediana_cdmx.ipynb
Created December 15, 2022 00:05
Playing with Geomediana, a set of satellital images from Mexico released by INEGI (https://www.inegi.org.mx/investigacion/geomediana/)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jjsantos01
jjsantos01 / catastro_df_anio_construccion.ipynb
Created April 18, 2023 19:11
This plot show the year of construction or latest remodeling of properties in Mexico City
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jjsantos01
jjsantos01 / animacion_ecobici.py
Last active April 18, 2023 19:17
animation of all trips in the Mexico City public bike sharing system during one day https://www.youtube.com/shorts/k1Or2olVLPo
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import geopandas as gpd
data = pd.read_csv('datos/rutas_ecobici_test.csv')
estaciones = gpd.read_file('datos/estaciones_ecobici.geojson')
colonias = gpd.read_file('datos/colonias_ecobici_bordes.geojson')
centros = gpd.read_file('datos/colonias_ecobici_centros.geojson')
x, y = data['lon'], data['lat']