// Equals checks for equality between this DataFrame and DataFrame d.
// nil elements at the same location are considered equal.
Equals checks for equality between this DataFrame and DataFrame d.
nil elements at the same location are considered equal.
// Equals checks for equality between this DataFrame and DataFrame d . // nil elements at the same location are considered equal .
func (df *DataFrame) Equals(d *DataFrame) bool {
	if !df.schema.Equal(d.schema) {
		return false
	}
	leftCols := df.Columns()
	rightCols := d.Columns()
	if len(leftCols) != len(rightCols) {
		return false
	}
	for i := range leftCols {
		leftCol := leftCols[i]
		rightCol := rightCols[i]
		same := compareColumns(&leftCol, &rightCol)
		if !same {
			return false
		}
	}
	return true
}
func ( df * DataFrame ) Equals ( d * DataFrame ) bool { if ! df . schema . Equal ( d . schema ) { return false } leftCols := df . Columns ( ) rightCols := d . Columns ( ) if len ( leftCols ) != len ( rightCols ) { return false } for i := range leftCols { leftCol := leftCols [ i ] rightCol := rightCols [ i ] same := compareColumns ( & leftCol , & rightCol ) if ! same { return false } } return true }
Equals checks for equality between this DataFrame and DataFrame d.
nil elements at the same location are considered equal.
Equals checks for equality between this DataFrame and DataFrame d . nil elements at the same location are considered equal .
// compare the columns // Could do this with a column iterator?