Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- graph = [('AAGE', ['ACLSWKR', 'ADTIND']), ('ARACE', ['AAGE'])]
- node = graph[0]
- this = node[0]
- parents = node[1]
- cpd[this] = pd.pivot_table(df, index=parents, values='COPY',
- columns=[this], fill_value=0,
- aggfunc=[np.sum])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement