Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SFrame 列をリストに変換する必要があります。
入力:
`+---------+ | word | +---------+ | love | | loves | | easy | | perfect | | great | +---------+`
出力:
['love', 'loves', 'easy', 'perfect', 'great']
関数がエラーを出したことに驚いてlistいます。これは私のために働く:
list
import graphlab as gl sf = gl.SFrame({'fruit': ['apple', 'banana', 'pear']}) list(sf['fruit'])
戻り値:
['apple', 'banana', 'pear']
ヒント:次を使用して配列に変換できます。
arr = sf.to_numpy()