Skip to content

Instantly share code, notes, and snippets.

@hwrdprkns
Created April 20, 2013 16:36
Show Gist options
  • Save hwrdprkns/5426553 to your computer and use it in GitHub Desktop.
Save hwrdprkns/5426553 to your computer and use it in GitHub Desktop.
for symbol in current_symbol_rank:
if previous_symbol_rank.has_key(symbol):
previous_rank = previous_symbol_rank[symbol]
current_rank = current_symbol_rank[symbol]
try:
moved[symbol] = int(previous_rank) - int(current_rank)
except ValueError:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment