mirror of
https://github.com/processing/processing4.git
synced 2026-02-06 15:19:39 +01:00
fix categorical data bug
This commit is contained in:
@@ -1801,7 +1801,8 @@ public class Table {
|
||||
|
||||
public int getInt(int row, int column) {
|
||||
checkBounds(row, column);
|
||||
if (columnTypes[column] == INT) {
|
||||
if (columnTypes[column] == INT ||
|
||||
columnTypes[column] == CATEGORICAL) {
|
||||
int[] intData = (int[]) columns[column];
|
||||
return intData[row];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user