A Python package with various utilities that speed-up development of Decision Optimization projects in Watson Studio. Implements common tasks and provides best-practice guidelines to architect DO projects.
Format thousands for num rows in db-insert progress print message
Added
DOModelDeployer support for gz/zip package files
ScenarioManager.load_data_from_parquet and .write_data_to_parquet
ScenarioDbManager.init added parameter enable_debug_print to print connection string
[Unreleased]## [0.5.4.3b0]
Changed
Fixed bug in ScenarioDbManager._check_schema_name if schema is None (e.g. when using SQLite)
ScenarioDbTable.insert_table_in_db_bulk selects columns present in both the df and the schema. Avoids error when column is defined in DB but not in df.
Added
Added 'group' as reserved table name
Added local_relative_data_path in ScenarioManager.init() to allow more flexibility in defining local paths
ScenarioDbManager.init added parameter enable_astype: bool = True: If True, force data-type of DataFrame to match schema before (bulk) insert.
[0.5.4.3] - 2022-04-21
Changed
Added
enable_debug_print
to print connection string[Unreleased]## [0.5.4.3b0]
Changed
Added
local_relative_data_path
in ScenarioManager.init() to allow more flexibility in defining local pathsenable_astype: bool = True
: If True, force data-type of DataFrame to match schema before (bulk) insert.