Each x coordinate corresponds to two y coordinates, because of square root.
To convert between Ys, you have to calculate y2 = (y1 - secp256k1.p) * -1. One of Y is even and another is odd.
To indicate which coordinate is needed, the compressed keys stars with 02 for even Y and 03 for odd Y.