Fix for find_common_type in daal4py/sklearn/_utils
@@ -139,7 +139,7 @@ def is_DataFrame(X):
def get_dtype(X):
try:
from pandas.core.dtypes.cast import find_common_type
- return find_common_type(X.dtypes) if is_DataFrame(X) else X.dtype
+ return find_common_type(list(X.dtypes)) if is_DataFrame(X) else X.dtype
except ImportError:
return getattr(X, "dtype", None)
