Check GDS stack

This notebook checks all software requirements for the course Geographic Data Science are correctly installed.

A successful run of the notebook implies no errors returned in any cell and every cell beyond the first one returning a printout of True. This ensures a correct environment installed.


In [ ]:
import qgrid

In [ ]:
qgrid.nbinstall(overwrite=True)

In [ ]:
import pandas as pd

In [ ]:
import scipy as sp

In [ ]:
import matplotlib as mpl

In [ ]:
import seaborn as sns

In [ ]:
import bokeh

In [ ]:
import statsmodels.api as sm

In [ ]:
import sklearn

In [ ]:
import networkx as nx

In [ ]:
import pyproj

In [ ]:
import clusterpy as cp

In [ ]:
import pysal as ps

In [ ]:
import fiona

In [ ]:
import geopandas as gpd

In [ ]:
import rasterio

In [ ]:
import geopy

In [ ]:
import mplleaflet

In [ ]:
import brewer2mpl

Test


In [ ]:
shp = ps.examples.get_path('columbus.shp')
db = gpd.read_file(shp)
db.head()

In [ ]:
qgrid.show_grid(pd.DataFrame(db.loc[:, ['AREA', 'CRIME']]))

In [ ]:
import matplotlib.pyplot as plt
%matplotlib inline
f, ax = plt.subplots(1)
for poly in db['geometry']:
    gpd.plotting.plot_multipolygon(ax, poly, facecolor='yellow', edgecolor='grey', linewidth=0.1)
ax.set_axis_off()
plt.show()

In [ ]:
db.crs['init'] = 'epsg:26918'

In [ ]:
db_wgs84 = db.to_crs(epsg=4326)
db_wgs84.plot()
plt.show()

In [ ]:
db.plot(column='INC', scheme='fisher_jenks', colormap=plt.matplotlib.cm.Blues)
plt.show()

Experimental packages


In [ ]:
%load_ext rpy2.ipython

In [ ]:
import pymc3