check if 2 columns are equal - Pandas

 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.


Comments

Popular posts from this blog

Record of error messages when writing ML code

Convert dataframe values to a list

TypeError: only list-like objects are allowed to be passed to isin(), you passed a [int]