You can limit number of threads by setting this environment variable
POLARS_MAX_THREADS=3
To verify the thread size:
import polars as pl pl.thread_pool_size()
https://docs.pola.rs/api/python/dev/reference/api/polars.thread_pool_size.html