public List < CategoricalColumn < ? > > categoricalColumns ( String ... columnNames ) { List < CategoricalColumn < ? > > columns = new ArrayList <> ( ) ; for ( String columnName : columnNames ) { columns . add ( categoricalColumn ( columnName ) ) ; } return columns ; }
Returns only the columns whose names are given in the input array