<jupyter_start><jupyter_text>Napoleon's troop movements<jupyter_code>import geopandas as gpd
import geoplot as gplt
import matplotlib.pyplot as plt
import mplleaflet
from matplotlib.colors import LinearSegmentedColormap

napoleon_troop_movements = gpd.read_file(gplt.datasets.get_path('napoleon_troop_movements'))

colors = [(215/255, 193/255, 126/255), (37/255, 37/255, 37/255)]
cm = LinearSegmentedColormap.from_list('minard', colors)

gplt.sankey(
    napoleon_troop_movements,
    scale='survivors', limits=(0.5, 45),
    hue='direction',
    cmap=cm
)
fig = plt.gcf()
fig
mplleaflet.display(fig)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11746031746031746, 'fraction_numerical': 0.05873015873015873, 'mean_word_length': 6.602409638554217, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '270936', 'license': 'RSA-MD', 'n_tokens_mistral': 288, 'n_tokens_neox': 247, 'n_words': 43, 'path': 'notebooks/static-over-web.ipynb', 'repo_name': 'chekos/Making-Maps-With-Python-NACIS-2019', 'size': '630'}