Skip to content

Commit 2d0cd28

Browse files
authored
[doc] Fux learning_to_rank.rst (dmlc#9381)
just adding one missing bracket
1 parent a1367ea commit 2d0cd28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorials/learning_to_rank.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Please note that, as of writing, there's no learning-to-rank interface in scikit
7070

7171
.. code-block:: python
7272
73-
df = pd.DataFrame(X, columns=[str(i) for i in range(X.shape[1]))
73+
df = pd.DataFrame(X, columns=[str(i) for i in range(X.shape[1])])
7474
df["qid"] = qid
7575
ranker.fit(df, y) # No need to pass qid as a separate argument
7676

0 commit comments

Comments
 (0)