How to import a specific column of csv files to Graphlab?

User 490 | 8/11/2014, 5:55:22 PM

I tried

vertices = gl.SFrame.readcsv('http://s3.amazonaws.com/GraphLab-Datasets/bond/bondvertices.csv') vertices = vertices['X1']

and it does not seem work. Any ideas?

Comments

User 15 | 8/11/2014, 6:36:24 PM

I'm not clear on what you're trying to do here. The bond_vertices.csv file has a header with column names, so there is no column named 'X1'. Try vertices['name']? You can see the column names by printing the 'vertices' object.