For `CatBoostClassifier.fit` DataFrame.iteritems() is deprecated, use obj.items instead https://pandas.pydata.org/docs/dev/whatsnew/v2.0.0.html https://github.com/pandas-dev/pandas/pull/45321