diff --git a/ads/opctl/operator/lowcode/common/data.py b/ads/opctl/operator/lowcode/common/data.py index 530a1d392..c85d5e5df 100644 --- a/ads/opctl/operator/lowcode/common/data.py +++ b/ads/opctl/operator/lowcode/common/data.py @@ -1,22 +1,21 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*-- # Copyright (c) 2024 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ import time -from .transformations import Transformations +from abc import ABC + +import pandas as pd + from ads.opctl import logger from ads.opctl.operator.lowcode.common.const import DataColumns -from ads.opctl.operator.lowcode.common.utils import load_data from ads.opctl.operator.lowcode.common.errors import ( - InputDataError, InvalidParameterError, - PermissionsError, - DataMismatchError, ) -from abc import ABC -import pandas as pd +from ads.opctl.operator.lowcode.common.utils import load_data + +from .transformations import Transformations class AbstractData(ABC): @@ -35,12 +34,15 @@ def get_raw_data_by_cat(self, category): condition = pd.Series(True, index=self.raw_data.index) if category in mapping: for col, val in mapping[category].items(): - condition &= (self.raw_data[col] == val) + condition &= self.raw_data[col] == val data_by_cat = self.raw_data[condition].reset_index(drop=True) - data_by_cat = self._data_transformer._format_datetime_col(data_by_cat) if self.spec.datetime_column else data_by_cat + data_by_cat = ( + self._data_transformer._format_datetime_col(data_by_cat) + if self.spec.datetime_column + else data_by_cat + ) return data_by_cat - def get_dict_by_series(self): if not self._data_dict: for s_id in self.list_series_ids(): diff --git a/pyproject.toml b/pyproject.toml index 833fefed6..4f3fe0e17 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -171,13 +171,13 @@ forecast = [ "statsmodels", "plotly", "oracledb", - "report-creator==1.0.9", + "report-creator==1.0.27", ] anomaly = [ "oracle_ads[opctl]", "autots", "oracledb", - "report-creator==1.0.9", + "report-creator==1.0.27", "rrcf==0.4.4", "scikit-learn", "salesforce-merlion[all]==2.0.4" @@ -186,7 +186,7 @@ recommender = [ "oracle_ads[opctl]", "scikit-surprise", "plotly", - "report-creator==1.0.9", + "report-creator==1.0.27", ] feature-store-marketplace = [ "oracle-ads[opctl]", @@ -202,7 +202,7 @@ pii = [ "scrubadub_spacy", "spacy-transformers==1.2.5", "spacy==3.6.1", - "report-creator==1.0.9", + "report-creator==1.0.27", ] llm = ["langchain>=0.2", "langchain-community", "langchain_openai", "pydantic>=2,<3", "evaluate>=0.4.0"] aqua = ["jupyter_server"]