[doc] Fux learning_to_rank.rst (#9381)

just adding one missing bracket
This commit is contained in:
Cássia Sampaio 2023-07-13 00:00:24 -03:00 committed by GitHub
parent a1367ea1f8
commit 2d0cd2817e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ Please note that, as of writing, there's no learning-to-rank interface in scikit
.. code-block:: python
df = pd.DataFrame(X, columns=[str(i) for i in range(X.shape[1]))
df = pd.DataFrame(X, columns=[str(i) for i in range(X.shape[1])])
df["qid"] = qid
ranker.fit(df, y) # No need to pass qid as a separate argument