Return the position of the
column in the Frame.
The index of the first column is
0, just as with regular python
If string, then this is the name of the column whose index you want to find.
If integer, then this represents a column’s index. The return
value is thus the same as the input argument
that it is in the correct range. If the
column argument is
negative, then it is interpreted as counting from the end of the
frame. In this case the positive value
column + ncols is
column argument may also be an
f-expression such as
case is treated as if the argument was simply
complicated f-expressions are not allowed and will result in a
The numeric index of the provided
column. This will be an
self.ncols - 1.
raised if the
df = dt.Frame(A=[3, 14, 15], B=["enas", "duo", "treis"], C=[0, 0, 0]) df.colindex("B")
from datatable import f df.colindex(f.A)