Skip to content

Instantly share code, notes, and snippets.

View kailukowiak's full-sized avatar
🏠
Working from home

Kai kailukowiak

🏠
Working from home
  • Calgary AB
View GitHub Profile
# Replaces spaces and caps.
df.columns = df.columns.str.strip().str.lower().str.replace(' ', '_').str.replace('(', '').str.replace(')', '')
@kailukowiak
kailukowiak / FilterExample.csv
Created November 6, 2020 15:30
Example of broken filter method in Julia
src srcgrade srcperiod dst dstgrade dstperiod srcname dstname trans is_used trancost idx
1 1 1 2 2 1 H1002NA H3003 H1002NA => H3003 1.0 232.0 1
1 1 1 3 3 1 H1002NA H3209 H1002NA => H3209 0.0 1.0 2
1 1 1 4 4 1 H1002NA H5025G H1002NA => H5025G 0.0 368.0 3
1 1 1 5 5 1 H1002NA H5103 H1002NA => H5103 0.0 182.66666666666666 4
1 1 1 6 6 1 H1002NA H5104 H1002NA => H5104 0.0 216.0 5
1 1 1 7 7 1 H1002NA H5235G H1002NA => H5235G 0.0 114.66666666666667 6
1 1 1 8 8 1 H1002NA H7012 H1002NA => H7012 0.0 337.33333333333337 7
1 1 1 9 9 1 H1002NA H7012N H1002NA => H7012N 0.0 336.0 8
1 1 1 10 10 1 H1002NA H7012S H1002NA => H7012S 0.0 336.0 9