What this book covers
Chapter 1, Getting Started with Python Polars, introduces you to Polars’ unique features and fundamental operations. This chapter guides you through the basic workings of DataFrames, LazyFrames, Series, and Expressions, getting you started on your journey with Python Polars.
Chapter 2, Reading and Writing Files, teaches you how to read from and write to various types of files and databases.
Chapter 3, An Introduction to Data Analysis in Python Polars, walks you through the application of common data exploration tasks. This includes, but is not limited to, inspecting the data, generating summary statistics, casting data types, removing duplicate values, and visualizing data.
Chapter 4, Data Transformation Techniques, helps you learn to apply aggregations, window functions, and user-defined functions (UDFs) in your data transformation pipelines. This chapter also introduces you how to use SQL in Polars.
Chapter 5, Handling Missing Data, covers ways to identify and handle missing values.
Chapter 6, Performing String Manipulations, helps you develop your skills in manipulating strings using Polars’ built-in methods.
Chapter 7, Working with Nested Data Structures, teaches you how to work with nested data structures such as lists and structs.
Chapter 8, Reshaping and Tidying Data, introduces you to ways to transform your data from a wide format to a long format and vice versa. This chapter also covers how you can combine or concatenate DataFrames.
Chapter 9, Time Series Analysis, focuses on time series analysis techniques such as rolling calculations and resampling methods. You’ll also learn to work with time-related attributes and how to build a simple time series forecasting model.
Chapter 10, Interoperability with Other Python Libraries, covers how Polars can interoperate with other Python libraries such as pandas, NumPy, PyArrow, and DuckDB.
Chapter 11, Working with Common Cloud Data Sources, gets you started on working with popular cloud object storage systems and databases.
Chapter 12, Testing and Debugging in Polars, teaches you how to use Polars’ built-in testing methods/functions and how to debug and troubleshoot your code using libraries such as pytest
and cuallee
.