This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PATH="/Users/trtim/miniconda3/envs/default/bin:${PATH}" | |
cd /Users/trtim/Develop/resource-potentials/report/ | |
cat | pandoc -r markdown+simple_tables+table_captions+yaml_metadata_block -w html --standalone --bibliography=/Users/trtim/.pandoc/literature.bib --csl=/Users/trtim/Develop/resource-potentials/report/energy-strategy-reviews.csl --filter /Users/trtim/miniconda3/envs/default/bin/pantable --filter /Users/trtim/miniconda3/envs/default/bin/pandoc-fignos --filter /Users/trtim/miniconda3/envs/default/bin/pandoc-tablenos --filter /Users/trtim/miniconda3/envs/default/bin/pandoc-citeproc |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 1.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Timestamp","The workshop was worth my time [Was it?]","What do you think about the programme? [Keynotes]","What do you think about the programme? [Speed dating session]","What do you think about the programme? [Poster session]","What do you think about the programme? [Do-a-thons]","What do you think about the programme? [Lightning talks]","What do you think about the programme? [Workshop booklet]","My preferred order of sessions is:","Do you have specific comments about the programme?","What do you think about the organisation of this workshop? [There were enough breaks between sessions]","What do you think about the organisation of this workshop? [I received timely announcements]","What do you think about the organisation of this workshop? [I could find all necessary information easily]","What do you think about the organisation of this workshop? [The forum should be used more heavily for workshop and session organisation]","What do you think about the organisation of this workshop? [Organising do-a-thons o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Prototype of plotting matplotlib plots in consecutive processes..""" | |
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas | |
from matplotlib.figure import Figure | |
from multiprocessing import Pool | |
# avoid to import pyplot as it'll import (on my machine) backends that fail with multiprocessing. | |
def do_plot(number): | |
fig = Figure(figsize=(13, 7)) | |
FigureCanvas(fig) | |
ax = fig.add_subplot(1, 1, 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import geopandas as gpd | |
import pandas as pd | |
import fiona | |
fiona.drvsupport.supported_drivers['kml'] = 'rw' # enable KML support which is disabled by default | |
fiona.drvsupport.supported_drivers['KML'] = 'rw' # enable KML support which is disabled by default | |
epc_data = pd.read_excel('./data/macromerge3.xlsm', sheetname='DomesticBulkDataAB') | |
geocodes = gpd.tools.geocode(["{}, {}".format(row.ADDRESS1, row.POSTCODE) for index, row in epc_data[:20].iterrows()], | |
provider='googlev3') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
import geopandas as gpd | |
import click | |
click.disable_unicode_literals_warning = True | |
ACTUAL_LSOA_COLUMN_NAME = 'LSOA_CODE' | |
NEEDED_LSOA_COLUMN_NAME = 'LSOAcode' | |