Agustín Benassi / Sep 28 2019
Remix of Python by Nextjournal
Environment viz-carreras-nextjournal
Install dependencies
pip install folium pip install shapely pip install pygal pip install seaborn pip install geopandas
Test
Locally Stored Dependencies
These dependencies are stored in the GitHub repository above. They should import without error.
import sys sys.path.insert(0, '/viz-carreras-nexjournal/scripts') import mapas, pygal_helpers, georef, download from pygal_helpers import df_to_pygal_line, get_pygal_html from helpers import read_csv, format_pct, get_bins
Dependencies
from collections import namedtuple import pandas as pd import matplotlib.pyplot as plt from matplotlib.ticker import MaxNLocator from scipy import stats import seaborn as sns import matplotlib import ipywidgets as widgets from ipywidgets import interact import folium from folium.plugins import DualMap from datetime import datetime from IPython.display import HTML, display import geopandas as gpd from shapely.geometry import Polygon, MultiPolygon
Creating data directory and copying CSV over the new dir.
ls