运行 ❯
获取你
自己的 Python
服务器
×
更改方向
更改主题,暗/亮
转到 Spaces
import pandas as pd data1 = { "name": ["Sally", "Mary", "John", "Mary"], "age": [50, 40, 30, 40] } df1 = pd.DataFrame(data1) data2 = { "name": ["Sally", "Mary", "John", "Mary"], "age": [50, 40, 30, 40] } df2 = pd.DataFrame(data2) print(df1.equals(df2))
True