简体   繁体   中英

How to delete a column in graphlab?

我不会使用我尝试使用的 graphlab 删除列

data.drop('X1','Unnamed:0',axis =1)

From the docs , use remove_column.

import graphlab

sf = graphlab.SFrame({'id': [1, 2, 3], 'val': ['A', 'B', 'C']})
sf.remove_column('val')
sf

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM