Skip to content

Commit

Permalink
bump rc version
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosler committed Nov 12, 2024
1 parent 25e6497 commit 5e92666
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
24 changes: 13 additions & 11 deletions ads/opctl/operator/lowcode/common/data.py
Original file line number Diff line number Diff line change
@@ -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):
Expand All @@ -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():
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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]",
Expand All @@ -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"]
Expand Down

0 comments on commit 5e92666

Please sign in to comment.