Is there an easy way to check whether two data frames are different copies or views of the same underlying data that doesn\'t involve manipulations? I\'m trying to get a gri
Answers from HYRY and Marius in comments!
One can check either by:
testing equivalence of the values.base
attribute rather than the values
attribute, as in:
df.values.base is df2.values.base
instead of df.values is df2.values
.
or using the (admittedly internal) _is_view
attribute (df2._is_view
is True
).
Thanks everyone!