Skip to content

Instantly share code, notes, and snippets.

View ezwelty's full-sized avatar

Ethan Welty ezwelty

  • Zürich, Switzerland
View GitHub Profile
@ezwelty
ezwelty / clusters.py
Last active June 11, 2020 20:26
PowerGenome: Prepare clusters and cluster profiles
import itertools
import pandas as pd
import numpy as np
import scipy.cluster.hierarchy
WEIGHT = "gw"
MEANS = [
"lcoe",
"site_substation_spur_miles",
"substation_metro_tx_miles",