Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- For id in total:
- l= m.groupby(['nodo_1','nodo_2']).size()
- n =list(l.index.values)
- nodo_1 nodo_2 0
- E039 J303 5
- J00X B829 5
- J209 J029 5
- K590 K291 5
- N925 K590 5
- N925 Z119 5
- Z119 K590 5
- for n in c:
- d=d.append({'Source':n[0],'Target':n[1],ignore_index=True)
- d.to_csv('d.csv')
Add Comment
Please, Sign In to add comment