force rebuild setting in scenario script

Timmy
Timmy Registered Posts: 7
edited July 16 in Using Dataiku

Hi Dataiku support team,

I am writing python script to run the scenario.

from dataiku.scenario import Scenario
from datetime import datetime, timedelta


# The Scenario object is the main handle from which you initiate steps
scenario = Scenario()


# get date
current_date = datetime.today()
chosen_date = current_date - timedelta(1)
formated_chosen_date = chosen_date.strftime('%Y-%m-%d')

scenario.build_dataset("sample_dataset")

In the code above, i want to set force_rebuild the "sample_dataset" when running scenario. Is there any parameter setting in the function build_dataset to do this.

Thanks

Best Answer

Answers

Setup Info
    Tags
      Help me…