Ruby convention would omit the temporary variable in the middle, and simply continue to chain together calls.  I think that is reasonable in this case.

Also, you should use the dataset `.each` method, rather than `all.each`, since that avoids first pulling the full dataset into memory, then processing each line of it.