[np.median(i) for i in x]
Since the list's have unequal length you can't broadcast them. That's why the first work, but not the second.
In the fist case, your two list's will get broadcast into a 3x2 array where a median along a axis makes sense. Now the two list's of unequal length can't be broadcast this way.