Converts a dataset in Driverless.AI to a CSV file that can be later downloaded.

dai.to_csv(df, progress = getOption("dai.progress", TRUE))

Arguments

df

An instance of DAIFrame.

progress

Whether to display a progress bar.

Value

A path to the CSV file on the Driverless.AI server.

See also

dai.download_file

Examples

dai.connect(uri = 'http://127.0.0.1:12345', username = 'h2oai', password = 'h2oai')
iris_dai <- as.DAIFrame(iris, progress = FALSE)
server_csv_path <- dai.to_csv(iris_dai)
dai.download_file(server_csv_path, tempfile(fileext = '.csv'))