Number of columns
Returns the number of columns in a DataFrame.
DataFrame
The number of columns.
ncol(mtcars)
colnames, nrow