[Tutor] check if two differently shaped dataframes are contained one another

marc nicole mk1853387 at gmail.com
Mon Apr 3 14:17:13 EDT 2023


Hello,

I have this first dataframe

1  2
3  4

and this second dataframe

5 9 3 8
7 1 2 0
6 3 4 10

and i want to check whether the first dataframe is contained in the second
(which is the case here)

I know that .isin() and .compare() both require that the dataframes are
shaped the same.
Note: I am looking for a "pandas" oriented solution


More information about the Tutor mailing list