From 1a4b09ac044c096772c74673cfb14f9fe413247d Mon Sep 17 00:00:00 2001 From: fbourgey Date: Fri, 13 Sep 2024 17:58:29 -0400 Subject: [PATCH 1/4] Fix doc --- doc/source/user_guide/dsintro.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/user_guide/dsintro.rst b/doc/source/user_guide/dsintro.rst index 9757a72f13fa8..2e8c3d9a5427d 100644 --- a/doc/source/user_guide/dsintro.rst +++ b/doc/source/user_guide/dsintro.rst @@ -87,8 +87,8 @@ 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**. .. ipython:: python From 436bd54044d4d2ca55af8ab40bc0ad79ad6d5397 Mon Sep 17 00:00:00 2001 From: fbourgey Date: Wed, 18 Sep 2024 10:55:35 -0400 Subject: [PATCH 2/4] add text when index no provided --- doc/source/user_guide/dsintro.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/source/user_guide/dsintro.rst b/doc/source/user_guide/dsintro.rst index 2e8c3d9a5427d..9c5b631bf2425 100644 --- a/doc/source/user_guide/dsintro.rst +++ b/doc/source/user_guide/dsintro.rst @@ -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)``. .. ipython:: python From 2461eb24742bcfc054ca79178f716a981c0a70ed Mon Sep 17 00:00:00 2001 From: fbourgey Date: Tue, 24 Sep 2024 09:22:33 -0400 Subject: [PATCH 3/4] correct RangeIndex --- doc/source/user_guide/dsintro.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/user_guide/dsintro.rst b/doc/source/user_guide/dsintro.rst index 9c5b631bf2425..66d705aada3f5 100644 --- a/doc/source/user_guide/dsintro.rst +++ b/doc/source/user_guide/dsintro.rst @@ -88,8 +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**. If the index is not provided, it defaults -to ``RangeIndex (0, 1, 2, …, n)``. +the length of **index**. If the **index** is not provided, it defaults +to ``RangeIndex (1)``. .. ipython:: python From 01a85b769fa4e5f9e1b85aece733d48ecd967b9b Mon Sep 17 00:00:00 2001 From: fbourgey Date: Mon, 30 Sep 2024 13:53:54 +0200 Subject: [PATCH 4/4] remove space --- doc/source/user_guide/dsintro.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/user_guide/dsintro.rst b/doc/source/user_guide/dsintro.rst index 66d705aada3f5..b9c285ca30c96 100644 --- a/doc/source/user_guide/dsintro.rst +++ b/doc/source/user_guide/dsintro.rst @@ -89,7 +89,7 @@ index will be pulled out. 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 (1)``. +to ``RangeIndex(1)``. .. ipython:: python