I have a data frame like this,
|ID |Pass | Fail | Pass_student_ID |Failed_student_ID|
|:-:|:---:|:----:|:---------------:|:---------------:|
| 1 | 2 | 0 | [101,102] | 0 |
| 2 | 1 | 1 | [102] | 101 |
| 3 | 0 | 1 | [101,102] | 0 |
I want an output like this
| ID|Student_ID|Status|
|:-:|:--------:|:----:|
| 1 | 101 | Pass |
| 1 | 102 | Pass |
| 2 | 101 | Fail |
| 2 | 102 | Pass |
| 3 | 101 | Fail |
| 3 | 102 | Fail |
How do I write in python to get this kind of data frame?