analizing marvels universe social network python
问题 I'm analizing Marvels Social Network I have this code: import numpy import pandas import networkx as nx import unicodecsv as csv data = pandas.read_csv('hero-network.csv', low_memory=False) def graph_from_csv(path): graph = nx.Graph(name="Heroic Social Network") with open(path, 'rU') as data: reader = csv.reader(data) for row in reader: graph.add_edge(*row) return graph.size() graph_from_csv(data) I'm new to python. And I'm not quite sure why my code has this kind of output insted of the