Как найти ячейку или несколько ячеек датафрейма, входящих в другой датафрейм? Сделать это очень просто с помощью оператора
isin() в комбинации с оператором
loc. Достаточно прописать, по какой колонке или группе колонок нам искать вхождение строк датафрейма в другой, и эта операция нам вернет все строчки нашего датафрейма, которые входят в другой датафрейм
How to find a cell or cells of a dataframe that is included in another dataframe? It is very easy to do using
isin() operator in combination with
loc operator. It is enough to specify in which column or group of columns we should look for the occurrence of dataframe rows in another one, and this operation will return all rows of our dataframe that are included in the other dataframe
pandas | python