datatable.Frame.ncols¶
Number of columns in the frame.
Parameters¶
return
int
The number of columns can be either zero or a positive integer.
Notes¶
The expression len(DT)
also returns the number of columns in the
frame DT
. Such usage, however, is not recommended.
See also¶
.nrows
: getter for the number of rows of the frame.
The content on this page is licensed under the Creative Commons Attribution 4.0 License
(CC BY 4.0) ,
and code samples are licensed under the MIT License.