We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1367ea commit 2d0cd28Copy full SHA for 2d0cd28
doc/tutorials/learning_to_rank.rst
@@ -70,7 +70,7 @@ Please note that, as of writing, there's no learning-to-rank interface in scikit
70
71
.. code-block:: python
72
73
- 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])])
74
df["qid"] = qid
75
ranker.fit(df, y) # No need to pass qid as a separate argument
76
0 commit comments