Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c40b80f

Browse files
committed
Fixed bug in category column copying. This will cause performance issues so a better fix is needed
1 parent 3dcd981 commit c40b80f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/github/lwhite1/tablesaw/api/CategoryColumn.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,9 @@ public void add(String stringValue) {
260260
* Initializes this Column with the given values for performance
261261
*/
262262
public void initializeWith(IntArrayList list, DictionaryMap map) {
263-
values = list;
264-
lookupTable = map;
263+
for (int key : list) {
264+
add(map.get(key));
265+
}
265266
}
266267

267268
/**

0 commit comments

Comments
 (0)