Posts

Showing posts from September, 2021

check if 2 columns are equal - Pandas

Image
 After joining 2 dataframes you may have what appear to be redundant columns. It is tempting to be happy with a scan of the 1st few or last few columns but for very large datatsets you don't know what lies beneath. The pandas equals function is here to help. See code snippet below.