Mulai sekarangMulai gratis

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.

Latihan ini merupakan bagian dari kursus

Scaling and Optimizing Data Pipelines with Polars

Lihat Kursus

Instruksi latihan

  • Assert that the full actual and expected DataFrames match.

Latihan interaktif langsung praktik

Cobalah latihan ini dengan melengkapi kode contoh ini.

# Full-frame equality assertion
____(actual, expected)
print("Frame assertion passed.")
print(actual)
Edit dan Jalankan Kode