coding the days away
Chilean pythonista mathematician, with a background in Operations Research and Stochastic Programming
- Santiago, Chile
- www.quant.cl
Pinned Loading
-
Precios combustibles
Precios combustibles 1import pandas as pd
2from token import TOKEN # token personal: http://www.energiaabierta.cne.cl/
34TIPOS = ['calefaccion','vehicular']
5SOURCE = 'http://api.cne.cl/v3/combustibles/{}/estaciones?token={}'
-
PPT compiler
PPT compiler 1from pptx import Presentation
2from pptx.util import Inches
3import glob
45SLIDE_LAYOUT_TITLE_AND_CONTENT = 1
-
async scraping
async scraping 1import aiohttp
2import asyncio
3import time, pandas as pd
45def async_http_get(urls, extractor=None, json_response=True):
-
Folium ClusterMap
Folium ClusterMap 1import folium
2from folium.plugins import MarkerCluster
34mc = MarkerCluster()
5fm = folium.Map(location=[40.72,-73.98],zoom_start=5)
-
sunburst graph in plot.ly
sunburst graph in plot.ly 1import plotly.graph_objs as go
2from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
3from IPython.display import HTML
45trace = go.Sunburst(
-
Lines over Heatmap
Lines over Heatmap 1import seaborn as sns; sns.set()
2import matplotlib.pyplot as plt
3flights = sns.load_dataset("flights");flights = flights.pivot("month", "year", "passengers")
4fig, ax = plt.subplots(1, figsize=(16,8))
5sns.heatmap(flights, cbar=False, annot=True, fmt='.0f', ax=ax)
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.