turicreate.SFrame.select_column¶
-
SFrame.
select_column
(column_name)¶ Get a reference to the
SArray
that corresponds with the given column_name. Throws an exception if the column_name is something other than a string or if the column name is not found.Parameters: - column_name: str
The column name.
Returns: - out : SArray
The SArray that is referred by
column_name
.
See also
Examples
>>> sf = turicreate.SFrame({'user_id': [1,2,3], ... 'user_name': ['alice', 'bob', 'charlie']}) >>> # This line is equivalent to `sa = sf['user_name']` >>> sa = sf.select_column('user_name') >>> sa dtype: str Rows: 3 ['alice', 'bob', 'charlie']