Skip to content

Instantly share code, notes, and snippets.

@aloth
Created November 7, 2016 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aloth/ef599419113228a1bb5dcade5c468096 to your computer and use it in GitHub Desktop.
Save aloth/ef599419113228a1bb5dcade5c468096 to your computer and use it in GitHub Desktop.
SCRIPT_REAL('
import numpy as np
return np.corrcoef(_arg1,_arg2)[0,1]
',
SUM([Sales]), SUM([Profit]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment