Skip to content

Instantly share code, notes, and snippets.

View daphne-cornelisse's full-sized avatar

Daphne Cornelisse daphne-cornelisse

View GitHub Profile
@ariffyasri
ariffyasri / rem_outlier.py
Created December 11, 2017 01:13
Remove outliers in pandas
import pandas as pd
import numpy as np
from pandas.api.types import is_numeric_dtype
np.random.seed(42)
age = np.random.randint(20,100,50)
name = ['name'+str(i) for i in range(50)]
address = ['address'+str(i) for i in range(50)]
@stuart11n
stuart11n / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote