prevent variable capture
prevent variable capture.
The difference is before df.index
is captured by the lambda, the change make it pass as an argument.
side effect is when some key are computed for Dask from func and its arguments.
Edited by Yannick