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. If the data is exactly the same as the data in one of the existing batch files, it won’t be duplicated. 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.