Skip to content

Instantly share code, notes, and snippets.

View katmutua's full-sized avatar
:shipit:

Jackie katmutua

:shipit:
  • X
  • Canada
  • 05:37 (UTC -04:00)
View GitHub Profile
#!/usr/bin/env
import pandas as pd
import numpy as np
# Define the diff function to show the changes in each field
def report_diff(x):
return x[0] if x[0] == x[1] else '{} ---> {}'.format(*x)
# We want to be able to easily tell which rows have changes
def has_change(row):
# Add the remote, call it "upstream":
git remote add upstream https://github.com/whoever/whatever.git
# Fetch all the branches of that remote into remote-tracking branches,
# such as upstream/master:
git fetch upstream
# Make sure that you're on your master branch: