i need to make a matrix using if, else, or something like this, so i have this enter image description here
and i just try this with :
from pandas