diff --git a/modin/pandas/base.py b/modin/pandas/base.py index f7eebcd30f2..b930f1bc7c0 100644 --- a/modin/pandas/base.py +++ b/modin/pandas/base.py @@ -20,7 +20,16 @@ import re import warnings from functools import cached_property -from typing import TYPE_CHECKING, Any, Callable, Hashable, Literal, Optional, Sequence +from typing import ( + TYPE_CHECKING, + Any, + Callable, + Hashable, + Literal, + Optional, + Sequence, + Union, +) import numpy as np import pandas @@ -2147,7 +2156,7 @@ def min( def _stat_operation( self, op_name: str, - axis: int | str, + axis: Optional[Union[int, str]], skipna: bool, numeric_only: Optional[bool] = False, **kwargs,