I'd concatenate the two examples, with something like:

Our previous example is therefore expressed as ``np.array([...])`` and an empty set of labels would be represented by a row of zero elements.

This way there's no repetition of therefore. There may be better formulations.