12

Testing and Debugging in Polars

We’ve covered many aspects of data processing and manipulations in Python Polars up so far. We’ll continue learning about what Polars can do in this chapter. The concepts taught in this chapter may apply to any data workflow, as testing and debugging are crucial components that help ensure the quality of your code.

This chapter contains the following recipes:

  • Debugging chained operations
  • Inspecting and optimizing the query plan
  • Testing data quality with cuallee
  • Running unit tests with pytest

Technical requirements

You can download the datasets and code in the GitHub repository.

Get Polars Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.