Skip to content

Instantly share code, notes, and snippets.

@tdsmith
Created August 22, 2014 01:51
Show Gist options
  • Save tdsmith/d002971a0532c97ce47a to your computer and use it in GitHub Desktop.
Save tdsmith/d002971a0532c97ce47a to your computer and use it in GitHub Desktop.
>>> s = pd.Series(["foo", "bar", "bar"])
>>> t = pd.Series(["foo", "bar", "baz"])
>>> s.value_counts() - t.value_counts()
bar 1
baz NaN
foo 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment