Skip to content
Merged

Fix doc #59793

Changes from 3 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
5 changes: 3 additions & 2 deletions doc/source/user_guide/dsintro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ index will be pulled out.

**From scalar value**

If ``data`` is a scalar value, an index must be
provided. The value will be repeated to match the length of **index**.
If ``data`` is a scalar value, the value will be repeated to match
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