Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. graph = [('AAGE', ['ACLSWKR', 'ADTIND']), ('ARACE', ['AAGE'])]
  2.  
  3. node = graph[0]
  4. this = node[0]
  5. parents = node[1]
  6. cpd[this] = pd.pivot_table(df, index=parents, values='COPY',
  7. columns=[this], fill_value=0,
  8. aggfunc=[np.sum])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement