Get startedGet started for free

Testing full DataFrames

The schema matches, and the values are right. Now run the full row-by-row check that confirms actual and expected are equivalent down to every cell.

actual, expected, and assert_frame_equal are preloaded.

This exercise is part of the course

Scaling and Optimizing Data Pipelines with Polars

View Course

Exercise instructions

  • Assert that the full actual and expected DataFrames match.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Full-frame equality assertion
____(actual, expected)
print("Frame assertion passed.")
print(actual)
Edit and Run Code