Skip to content

Instantly share code, notes, and snippets.

Reginald Eps endlesspint8

Block or report user

Report or block endlesspint8

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
def new_value(orig_inputs, new_min, new_max, old_value):
old_min = min(orig_inputs)
old_max = max(orig_inputs)
old_range = old_max - old_min
new_range = new_max - new_min
new_value = ((old_value - old_min) * new_range / old_range) + new_min
return new_value
import numpy as np
import matplotlib.pyplot as plt
import matplotlib'ggplot')
%matplotlib inline
# team xref information
team_xref = pd.read_csv('data/team_xref.csv', sep=';')
print team_xref.shape
def craft_import_match(year, overall, overall_growth, craft, craft_growth, imp, imp_growth):
print "starting metrics:"
print "year:", year
print "overall %d BBLS and %3.3f percent growth" % (overall, overall_growth)
print "craft %d BBLS & %2.3f percent growth" % (craft, craft_growth)
print "import %d BBLS & %2.3f percent growth" % (imp, imp_growth)
print "\nyear\toverall_bbl\tcraft_bbl\timport_bbl"
while craft < imp:
year += 1
import numpy as np
def lat_path(x):
grid = (x+1) * (x+1)
test_m = np.zeros(grid).reshape(x+1, x+1)
for row in range(x+1):
for col in range(x+1):
import csv
dutch_dict = {}
# stop words
with open('stopwords/stopwords_table_wTrans.csv', 'r') as f:
reader = csv.reader(f)
for row in reader:
dutch_dict[row[1]] = row[5]
You can’t perform that action at this time.