Source Code for my blog post: Interactive Data Visualization of Geospatial Data using D3.js, DC.js, Leaflet.js and Python
#Dependencies
You need Python
2.7.x and 3 Python
libraries: Pandas
, Flask
, Shapely
.
The easiest way to install Pandas
is to install it as part of the Anaconda distribution.
You can install Flask
and Shapely
using pip
.
pip install flask shapely
#How to run the code
- Install all Python dependencies
- Download the dataset (gender_age_train.csv, events.csv, phone_brand_device_model.csv) from Kaggle. You need to create a Kaggle account and agree to the competition rules to download the data.
- Save the dataset in the
input
folder. - From the root folder, run
python app.py
#Visit my Blog : http://adilmoujahid.com