Created
January 8, 2015 16:31
-
-
Save martincooper/a25a84230339c6dda3a5 to your computer and use it in GitHub Desktop.
Remove Row From Scala DataTable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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