I have a dataframe like this:
array([[1374495, 3, 'prior', ..., 16.0, 'soy lactosefree', 'dairy eggs'],
[3002854, 3, 'prior', ..., 16.0, 'soy lactosefree', 'dairy eggs'],
[2710558, 3, 'prior', ..., 16.0, 'soy lactosefree', 'dairy eggs'],
...,
[1355976, 206200, 'prior', ..., 16.0, 'soy lactosefree',
'dairy eggs'],
[1909878, 206200, 'prior', ..., 16.0, 'soy lactosefree',
'dairy eggs'],
[943915, 206200, 'train', ..., 16.0, 'soy lactosefree', 'dairy eggs']], dtype=object)
the first number of every row is orderid, like 1374495, 3002854, 2710558... Now I have a list of orderid which shall be used to get the rows from the array. For example, the list to be used is [1355976, 1909878, 943915 ], I should select the rows from array whose orderid in [1355976, 1909878, 943915 ]. How can I realize this in an efficient way ?