Skip to content

Commit

Permalink
use dataclass instead of namedtuple
Browse files Browse the repository at this point in the history
  • Loading branch information
samukweku committed Jan 12, 2023
1 parent 799a205 commit 9ceedd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions janitor/functions/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
Union,
Callable,
Any,
NamedTuple,
)
from pandas.core.dtypes.generic import ABCPandasArray, ABCExtensionArray
from pandas.core.common import is_bool_indexer
Expand Down Expand Up @@ -615,7 +614,8 @@ def _convert_to_numpy_array(
return left, right


class SD(NamedTuple):
@dataclass
class SD:
"""
Subset of Data.
Used in `mutate` and `summarize`
Expand Down

0 comments on commit 9ceedd0

Please sign in to comment.