Documentation

Save to File

The Save to File component allows you to save data to a file in various formats, with support for different input types and file formats.

Save to File Component

Save to File interface and configuration

Component Inputs

  • Input Type: DataFrame

    Type of data to be saved

  • DataFrame: Input data in DataFrame format

    The DataFrame to be saved

  • File Format: Select a file format

    The format to save the file in

  • File Path (Including Filename): /output

    The destination path and filename

Component Output

  • Confirmation: Success/failure status

    Indicates whether the file was saved successfully

Implementation Example

const saveToFile = { inputType: "DataFrame", dataFrame: myDataFrame, fileFormat: "csv", filePath: "/output/data.csv" }; // Output: // { // success: true, // message: "File saved successfully", // path: "/output/data.csv" // }

Best Practices

  • Always specify the full file path including extension
  • Choose appropriate file format for your data type
  • Verify file permissions before saving
  • Handle large datasets appropriately