Dataframe extension integration

Why not reuse the same `num_threads` variable?