Skip to content

Fix doc #59793

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Sep 30, 2024
Merged

Fix doc #59793

Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/source/user_guide/dsintro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ index will be pulled out.
**From scalar value**

If ``data`` is a scalar value, the value will be repeated to match
the length of **index**.
the length of **index**. If the index is not provided, it defaults
to ``RangeIndex (0, 1, 2, …, n)``.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

n here is not defined, and I think in this notation would be 0, but this is not the notation used to construct a RangeIndex. In particular, RangeIndex(0) here is wrong. Can you make this RangeIndex(1).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made the change.


.. ipython:: python

Expand Down
Loading