🚧 Sprout is still in active development and evolving quickly, so the documentation and functionality may not work as described and could undergo substantial changes 🚧
Write the tidied data into the resource’s batch data folder.
Use this function to write the original data that is in a tidy Polars DataFrame to the resource folder provided by the path property in the resource_properties. The function saves the DataFrame as file with a timestamped, unique name, as a backup. See the design docs for an explanation of this batch file. Data is always checked against the resource_properties before it is written to the batch folder.
Parameters
data:pl.DataFrame
A Polars DataFrame object with the data to write to the batch folder.
resource_properties:ResourceProperties
The properties object for the specific resource. Use read_properties() to read the properties for the resource.
package_path:Path | None=None
The path to the data package root folder (where datapackage.json is located). Defaults to the current working directory.