Membandingkan dua kolom DataFrame

comparison_column = np.where(df["col1"] == df["col2"], True, False)
Tense Turtle