janitor module conflicts with sklearn cross_val_score

### Describe the bug

Importing janitor when using LeaveOneOut() with cross_val_score() causing warning.

### Steps/Code to Reproduce

```
from sklearn.model_selection import LeaveOneOut, KFold, cross_val_score
import janitor #cannot be used with cross_val_score since it causes warning
from catboost import CatBoostClassifier, Pool
cv = LeaveOneOut()
model = CatBoostClassifier(iterations=100, depth=7)
scores = cross_val_score(model, X2, y, cv=cv, scoring='accuracy')
```

### Expected Results

No warning

### Actual Results

```
C:\Program Files\Python310\lib\site-packages\sklearn\utils\_tags.py:338: DeprecationWarning: The following error was raised: 'CatBoostClassifier' object has no attribute '__sklearn_tags__'. It seems that there are no classes that implement `__sklearn_tags__` in the MRO and/or all classes in the MRO call `super().__sklearn_tags__()`. Make sure to inherit from `BaseEstimator` which implements `__sklearn_tags__` (or alternatively define `__sklearn_tags__` but we don't recommend this approach). Note that `BaseEstimator` needs to be on the right side of other Mixins in the inheritance order. The default are now used instead since retrieving tags failed. This warning will be replaced by an error in 1.8.
  warnings.warn(
C:\Program Files\Python310\lib\site-packages\sklearn\utils\_tags.py:338: DeprecationWarning: The following error was raised: 'CatBoostClassifier' object has no attribute '__sklearn_tags__'. It seems that there are no classes that implement `__sklearn_tags__` in the MRO and/or all classes in the MRO call `super().__sklearn_tags__()`. Make sure to inherit from `BaseEstimator` which implements `__sklearn_tags__` (or alternatively define `__sklearn_tags__` but we don't recommend this approach). Note that `BaseEstimator` needs to be on the right side of other Mixins in the inheritance order. The default are now used instead since retrieving tags failed. This warning will be replaced by an error in 1.8.
  warnings.warn(
C:\Program Files\Python310\lib\site-packages\sklearn\utils\_tags.py:338: DeprecationWarning: The following error was raised: 'CatBoostClassifier' object has no attribute '__sklearn_tags__'. It seems that there are no classes that implement `__sklearn_tags__` in the MRO and/or all classes in the MRO call `super().__sklearn_tags__()`. Make sure to inherit from `BaseEstimator` which implements `__sklearn_tags__` (or alternatively define `__sklearn_tags__` but we don't recommend this approach). Note that `BaseEstimator` needs to be on the right side of other Mixins in the inheritance order. The default are now used instead since retrieving tags failed. This warning will be replaced by an error in 1.8.
  warnings.warn(
C:\Program Files\Python310\lib\site-packages\sklearn\utils\_tags.py:338: DeprecationWarning: The following error was raised: 'CatBoostClassifier' object has no attribute '__sklearn_tags__'. It seems that there are no classes that implement `__sklearn_tags__` in the MRO and/or all classes in the MRO call `super().__sklearn_tags__()`. Make sure to inherit from `BaseEstimator` which implements `__sklearn_tags__` (or alternatively define `__sklearn_tags__` but we don't recommend this approach). Note that `BaseEstimator` needs to be on the right side of other Mixins in the inheritance order. The default are now used instead since retrieving tags failed. This warning will be replaced by an error in 1.8.
  warnings.warn(
```

### Versions

```shell
System:
    python: 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
executable: C:\Program Files\Python310\python.exe
   machine: Windows-10-10.0.19045-SP0

Python dependencies:
      sklearn: 1.7.2
          pip: 25.3
   setuptools: 80.9.0
        numpy: 2.2.6
        scipy: 1.15.3
       Cython: 3.0.12
       pandas: 2.3.3
   matplotlib: 3.10.8
       joblib: 1.5.3
threadpoolctl: 3.6.0

Built with OpenMP: True

threadpoolctl info:
       user_api: openmp
   internal_api: openmp
    num_threads: 32
         prefix: vcomp
       filepath: C:\Program Files\Python310\Lib\site-packages\sklearn\.libs\vcomp140.dll
        version: None

       user_api: blas
   internal_api: openblas
    num_threads: 24
         prefix: libscipy_openblas
       filepath: C:\Program Files\Python310\Lib\site-packages\numpy.libs\libscipy_openblas64_-13e2df515630b4a41f92893938845698.dll
        version: 0.3.29
threading_layer: pthreads
   architecture: Haswell

       user_api: blas
   internal_api: openblas
    num_threads: 24
         prefix: libscipy_openblas
       filepath: C:\Program Files\Python310\Lib\site-packages\scipy.libs\libscipy_openblas-f07f5a5d207a3a47104dca54d6d0c86a.dll
        version: 0.3.28
threading_layer: pthreads
   architecture: Haswell
```

COMMENT:
The error raises from catboost and is indeed the same as @gautamvarmadatla had linked.

Downstream libraries need to comply to scikit-learns new tagging API to stay compatible. The warning is more directed to third party library developers than to end users.

I am closing this issue, since this needs to be addressed in catboost, not here.
See #32394 for more context, if you are interested in some backgrond, @asdsadsaasd12312132.

Labels: Bug