pub fn encode<W: Write>(
df: &mut DataFrame,
format: ExportFormat,
options: &ExportOptions,
sink: W,
) -> Result<()>Expand description
Encode df into sink and finish (drain buffers, write the last block and trailer,
flush), so failures surface here rather than at drop.