Skip to content

Commit

Permalink
avoid TENSOR_TABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzamora committed Apr 11, 2024
1 parent a92f0b9 commit f091625
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion nvtabular/ops/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from merlin.core.dispatch import DataFrameType, annotate
from merlin.dtypes.shape import DefaultShapes
from merlin.schema import Schema
from nvtabular.ops.operator import ColumnSelector, Operator
from nvtabular.ops.operator import ColumnSelector, DataFormats, Operator


class Groupby(Operator):
Expand Down Expand Up @@ -109,6 +109,7 @@ def __init__(
self.list_aggs[col] = list(_list_aggs)

self.name_sep = name_sep
self.supported_formats = DataFormats.PANDAS_DATAFRAME | DataFormats.CUDF_DATAFRAME
super().__init__()

@annotate("Groupby_op", color="darkgreen", domain="nvt_python")
Expand Down
6 changes: 5 additions & 1 deletion nvtabular/ops/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from merlin.dag import BaseOperator, ColumnSelector # noqa pylint: disable=unused-import
from merlin.dag import ( # noqa pylint: disable=unused-import
BaseOperator,
ColumnSelector,
DataFormats,
)

Operator = BaseOperator

0 comments on commit f091625

Please sign in to comment.