Introduction
Lazy evaluation means Spark waits to run your code until it really needs to. This saves time and computer power.
When you want to build a data processing plan without running it immediately.
When you want to combine many data steps before actually doing the work.
When you want Spark to optimize your data tasks for faster results.
When you want to avoid wasting resources on unnecessary calculations.