Skip to content

Instantly share code, notes, and snippets.

@martincooper
Created January 8, 2015 16:31
Show Gist options
  • Save martincooper/a25a84230339c6dda3a5 to your computer and use it in GitHub Desktop.
Save martincooper/a25a84230339c6dda3a5 to your computer and use it in GitHub Desktop.
Remove Row From Scala DataTable
val matchingRow = table.find(row => row.as[Int]("FieldId") == 1234)
val newTable = matchingRow match {
case Some(row) => table.rows.remove(row)
case _ => Success(table)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment