Skip to content

Instantly share code, notes, and snippets.

View jykim16's full-sized avatar

Jonathan Kim jykim16

View GitHub Profile
import pandas as pd
df = pd.read_csv("sample_data_3.csv")
df['ts'] = pd.to_datetime(df['ts'])
# Consider only the rows with country_id = "BDV" (there are 844 such rows).
# For each site_id, we can compute the number of unique user_id's found in these 844 rows.
# Which site_id has the largest number of unique users? And what's the number?
is_BDV = df['country_id']=='BDV'
df_is_BDV = df[is_BDV]
df_is_BDV_by_site = df_is_BDV.groupby('site_id')
def equalsWhenOneCharRemoved(x, y):
lengthDiff = len(y) - len(x)
if not (lengthDiff == 1 or lengthDiff == -1):
return False
for pointer in range(len(x)):
if x[pointer] == y[pointer]:
continue
else:
if x[pointer:] == y[pointer+1:]:
return True

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

Delete untracked files
git clean -fd <FILE_OR_FOLDER>
Intro to svg elements (1 - 6)
Making graphs W svg (22-24)
Now d3 (56-57)
-javascript svgs
-Method chaining
Meat of d3 (next tab)
-data binding(.select,.data)
@jykim16
jykim16 / MacGettingStarted
Last active February 13, 2018 01:59
mac upgrades/setup for a new dev environment
Add aliases for git
https://githowto.com/aliases
vi ~/.gitconfig
paste
`
[alias]
co = checkout
ci = commit
st = status
@jykim16
jykim16 / tmux-cheatsheet.markdown
Last active April 17, 2018 06:07 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

list all tmux sessions:

tmux ls

start new with session name:

tmux new -s myname
@jykim16
jykim16 / keybase.md
Created December 15, 2017 22:06
Keybase Verification

Keybase proof

I hereby claim:

  • I am jykim16 on github.
  • I am jykim16 (https://keybase.io/jykim16) on keybase.
  • I have a public key whose fingerprint is 3D86 5D65 4E4F 725D 5F48 5304 A600 34C5 FB9E 98AB

To claim this, I am signing this object: