@Test
public void testSetDouble() throws IOException {

  ColumnType[] types = {
    STRING, STRING, INTEGER, INTEGER, INTEGER,
    INTEGER, DOUBLE, DOUBLE, DOUBLE, INTEGER,
    INTEGER, INTEGER, INTEGER, DOUBLE, DOUBLE
  };
  Table table =
      Table.read()
          .csv(CsvReadOptions.builder(new File("../data/baseball.csv")).columnTypes(types));
  Row row = new Row(table);
  while (row.hasNext()) {
    row.next();
    double rowVal = table.doubleColumn("OBP").getDouble(row.getRowNumber());
    // setDouble(columnIndex, value)
    row.setDouble(6, rowVal + Math.PI);
    assertEquals(rowVal + Math.PI, row.getDouble(6), 0.001);
    // setDouble(columnName, value)
    row.setDouble("OBP", rowVal + 2 * Math.PI);
    assertEquals(rowVal + 2 * Math.PI, row.getDouble("OBP"), 0.001);
  }
}