📜  pandas df 精确等于 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:11.806000             🧑  作者: Mango

代码示例2
>>> df = pd.DataFrame({1: [10], 2: [20]})

>>> exactly_equal = pd.DataFrame({1: [10], 2: [20]}) # Note the same as above

>>> df.equals(exactly_equal)
True
# Two are the same hence true. If not would be false