check the columns of two df are the same code example
Example: python pandas check if two columns are equal
df = pd.DataFrame([[2, 2], [3, 6]], columns = ["col1", "col2"])
df = pd.DataFrame([[2, 2], [3, 6]], columns = ["col1", "col2"])