Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Hi Team
can you please let us know how to change file name
regards,
pritam
Hi @pritam003,
Changing the file name when using the Visual Export to Folder recipe is not possible.
You can use Python recipe and read/write APIs. Create a python with managed folder ( backed on S3) as the output.
import dataiku
import pandas as pd, numpy as np
from dataiku import pandasutils as pdu
managed_folder_id = "URKU7Oqb"
# Read dataset convert df
my_dataset = dataiku.Dataset("customers_labeled_prepared")
df = my_dataset.get_dataframe()
# Write recipe outputs
output_folder = dataiku.Folder(managed_folder_id)
output_folder.upload_stream("some_name.csv", df.to_csv(index=False).encode("utf-8"))
Hi @pritam003,
Changing the file name when using the Visual Export to Folder recipe is not possible.
You can use Python recipe and read/write APIs. Create a python with managed folder ( backed on S3) as the output.
import dataiku
import pandas as pd, numpy as np
from dataiku import pandasutils as pdu
managed_folder_id = "URKU7Oqb"
# Read dataset convert df
my_dataset = dataiku.Dataset("customers_labeled_prepared")
df = my_dataset.get_dataframe()
# Write recipe outputs
output_folder = dataiku.Folder(managed_folder_id)
output_folder.upload_stream("some_name.csv", df.to_csv(index=False).encode("utf-8"))
Thanks @AlexT this helped a lot.
can you please let us know how we can create a managed folder using python api and get the managed folder id through it.
TIA
pritam
Please see solution provided here: https://community.dataiku.com/t5/Using-Dataiku/is-there-any-way-to-create-managed-folder-by-using-th...
Thanks!