From 41e32e9edcd1e6755d6f959e573f807a75c7ae7e Mon Sep 17 00:00:00 2001 From: Naren Krishna <92325366+naren-ponder@users.noreply.github.com> Date: Fri, 22 Jul 2022 14:05:32 -0700 Subject: [PATCH] FEAT-#4706: Add Modin ClassLogger to PandasDataframePartitionManager (#4707) Signed-off-by: Naren Krishna --- docs/release_notes/release_notes-0.16.0.rst | 3 ++- modin/core/dataframe/pandas/partitioning/partition_manager.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/release_notes/release_notes-0.16.0.rst b/docs/release_notes/release_notes-0.16.0.rst index be5009b0647..31c568ecf07 100644 --- a/docs/release_notes/release_notes-0.16.0.rst +++ b/docs/release_notes/release_notes-0.16.0.rst @@ -29,7 +29,7 @@ Key Features and Updates * PERF-#4288: Improve perf of `groupby.mean` for narrow data (#4591) * PERF-#4325: Improve perf of multi-column assignment in `__setitem__` when no new column names are assigning (#4455) * Benchmarking enhancements - * + * FEAT-#4706: Add Modin ClassLogger to PandasDataframePartitionManager (#4707) * Refactor Codebase * REFACTOR-#4530: Standardize access to physical data in partitions (#4563) * REFACTOR-#4534: Replace logging meta class with class decorator (#4535) @@ -75,3 +75,4 @@ Contributors @noloerino @devin-petersohn @YarShev +@naren-ponder diff --git a/modin/core/dataframe/pandas/partitioning/partition_manager.py b/modin/core/dataframe/pandas/partitioning/partition_manager.py index e084d0b2c0c..6f48f0be494 100644 --- a/modin/core/dataframe/pandas/partitioning/partition_manager.py +++ b/modin/core/dataframe/pandas/partitioning/partition_manager.py @@ -28,6 +28,7 @@ from modin.core.storage_formats.pandas.utils import compute_chunksize from modin.core.dataframe.pandas.utils import concatenate from modin.config import NPartitions, ProgressBar, BenchmarkMode, Engine, StorageFormat +from modin.logging import ClassLogger import os @@ -78,7 +79,7 @@ def wait(cls, *args, **kwargs): return func -class PandasDataframePartitionManager(ABC): +class PandasDataframePartitionManager(ClassLogger, ABC): """ Base class for managing the dataframe data layout and operators across the distribution of partitions.