def subset_mapping_data(mdata, samples_of_interest):
 return mdata[in1d(mdata[:, 0], samples_of_interest)]

def subset_mapping_data ( mdata , samples_of_interest ) : return mdata [ in1d ( mdata [ : , 0 ] , samples_of_interest ) ]
remove rows of mdata that are not from samples_of_interest .