Databricks API Specs¶
Methods
load_yaml (path) |
load yaml file |
|
get_test_date (file_path) |
get date from x days ago from specified date |
load_yaml¶
- load_yaml(path: str)¶
- load yaml file
- Parameters:
path – filepath of yaml file
- Returns:
yaml contents as dictionary
- Return type:
Dict
get_test_date¶
- get_test_date(datetime_provided: datetime.datetime, days_difference: int)¶
- get date from `x` days ago from specified date
- Parameters:
datetime_provided (datetime.datetime) – datetime input, most likely datetime.datetime.now()
days_difference (int) – number days ago we should look back
- Returns:
returns a date dim key, yyyyMMdd
- Return type:
int