-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
Closed
Labels
Description
Pandas version checks
- I have checked that the issue still exists on the latest versions of the docs on
main
here
Location of the documentation
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.head.html
Documentation problem
When you explain negative values of n you indicate an incorrect equivalence of the indexing of the DataFrame.
It says: "For negative values of n, this function returns all rows except the last |n| rows, equivalent to df[:n]."
Suggested fix for documentation
And it should say:
"..., equivalent to df[:-n]."