diff --git a/python-package/xgboost/sklearn.py b/python-package/xgboost/sklearn.py index ad57aee8214c..3204f5a2a61e 100644 --- a/python-package/xgboost/sklearn.py +++ b/python-package/xgboost/sklearn.py @@ -1823,7 +1823,6 @@ def _get_qid( "Found both the special column `qid` in `X` and the `qid` from the" "`fit` method. Please remove one of them." ) - assert qid is None q_x = X.qid X = X.drop("qid", axis=1) return X, q_x