Ask Your Question

adjacency matrix import

asked 2012-10-26 16:16:58 -0500

LewisEGilbert gravatar image

I am working on a social network analysis of sustainability staff at a large research university in the mid-west. I would like to keep track of my networks using a spreadsheet which will include information about connections (undirected or directed graphs) and information about the nodes (e.g. labels and groups).

Has anyone built scripts that will import generic csv files (or even better .xls or .numbers files)?

if I am being incredibly naive, please point me to the appropriate enlightenment.

thanks, Lewis E Gilbert

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-10-26 21:07:01 -0500

benjaminfjones gravatar image

There is a module in the python standard library for reading/writing files in CSV format. See for details. There are also robust python modules called xlrd and xlwt for reading/writing Excel spreadsheets. See the related question:

edit flag offensive delete link more


You can also find some code for importing from a CSV file simply at:

calc314 gravatar imagecalc314 ( 2012-10-27 02:05:28 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-10-26 16:16:58 -0500

Seen: 537 times

Last updated: Oct 26 '12