datatable.Namespace.__getitem__()¶
Retrieve column(s) by their indices/names/types.
By “retrieve” we actually mean that an expression is created
such that when that expression is used within the
DT[i,j] call, it would locate and
return the specified column(s).
Parameters¶
item
int | str | slice | None | type | stype | ltypeThe column selector:
intRetrieve the column at the specified index. For example,
f[0]denotes the first column, whlief[-1]is the last.strRetrieve a column by name.
sliceRetrieve a slice of columns from the namespace. Both integer and string slices are supported.
NoneRetrieve no columns (an empty columnset).
type|stype|ltypeRetrieve columns matching the specified type.
return
FExprAn expression that selects the specified column from a frame.
See also¶
f-expressions – user guide on using f-expressions.