This is my Excel Data with two columns
Name | Score |
---|---|
john | fail |
rony | pass |
helium | pass |
ruby | fail |
I need linq query to replace the “fail” as “0” and “pass” as “1” in score column, but i want to write into the another column,
Expected Output:
Name | Score | New Score |
---|---|---|
john | fail | 0 |
rony | pass | 1 |
helium | pass | 1 |
ruby | fail | 0 |