Skip to content

Instantly share code, notes, and snippets.

View ecotg's full-sized avatar

Christy Okpo ecotg

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ecotg on github.
  • I am ecotg (https://keybase.io/ecotg) on keybase.
  • I have a public key ASCoOWmIYbarNJQN8FPjog_yXOYgkCXU5qPUiHeD6pmnTwo

To claim this, I am signing this object:

# Additional: Exploratory data analysis using python
# >> csv data: http://bit.ly/2oodrwJ
# >> This is a data set that records various attributes of passengers on the Titanic, including who survived and who didn’t.
# >> Dimensions of the data:
# >> # passengers, % per gender, % per class
# >> Average age of survivors?
# >> What class had the most survivors?
# >> What were the average fares per class
# >>
# >>
@ecotg
ecotg / titanic.csv
Last active February 24, 2018 09:32
Passengers on the titanic from https://github.com/Geoyi/Cleaning-Titanic-Data
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 16 columns, instead of 6. in line 8.
"","pclass","survived","name","sex","age","sibsp","parch","ticket","fare","cabin","embarked","boat","body","home.dest","has_cabin_number"
"1",1,1,"Allen, Miss. Elisabeth Walton","female",29,0,0,"24160",211.3375,"B5","S","2",NA,"St Louis, MO",1
"2",1,1,"Allison, Master. Hudson Trevor","male",0.9167,1,2,"113781",151.55,"C22 C26","S","11",NA,"Montreal, PQ / Chesterville, ON",1
"3",1,0,"Allison, Miss. Helen Loraine","female",2,1,2,"113781",151.55,"C22 C26","S",NA,NA,"Montreal, PQ / Chesterville, ON",1
"4",1,0,"Allison, Mr. Hudson Joshua Creighton","male",30,1,2,"113781",151.55,"C22 C26","S",NA,135,"Montreal, PQ / Chesterville, ON",1
"5",1,0,"Allison, Mrs. Hudson J C (Bessie Waldo Daniels)","female",25,1,2,"113781",151.55,"C22 C26","S",NA,NA,"Montreal, PQ / Chesterville, ON",1
"6",1,1,"Anderson, Mr. Harry","male",48,0,0,"19952",26.55,"E12","S","3",NA,"New York, NY",1
"7",1,1,"Andrews, Miss. Kornelia Theodosia","female",63,1,0,"13502",77.9583,"D7","S","10",NA,"Hudson, NY",1
"8",1,0,"Andrews, Mr. Thomas Jr","male",3
@ecotg
ecotg / jscript_gists.js
Last active May 24, 2016 21:58
Quick code tips - Javascript edition
// Find all occurences
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36'.match(/\((.*?)\)/g)
[ '(Macintosh; Intel Mac OS X 10_7_5)', '(KHTML, like Gecko)' ]
@ecotg
ecotg / naive_needleman_wunsch.py
Created March 9, 2015 00:47
Hacker School Application Code Sample - Christy Okpo
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Date: Feb. 16 2015
Author: Christy Okpo <ecokpo@gmail.com>
Project: Implement the Needleman-Wunsch algorithm for pair-wise alignments.
Purpose: This implementation demonstrates how to align two nucleotides
sequences using the Needleman-Wunsch algorithm developed by Saul B. Needleman
and Christian D. Wunsch.