Skip to content

Commit 8472ef3

Browse files
Merge remote-tracking branch 'upstream/main' into 7023_error_bars
2 parents e6777e1 + 4afc277 commit 8472ef3

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
134134
-i "pandas.DatetimeTZDtype.tz SA01" \
135135
-i "pandas.DatetimeTZDtype.unit SA01" \
136136
-i "pandas.Grouper PR02" \
137-
-i "pandas.HDFStore.get SA01" \
138137
-i "pandas.HDFStore.groups SA01" \
139138
-i "pandas.HDFStore.info RT03,SA01" \
140139
-i "pandas.HDFStore.keys SA01" \
@@ -173,13 +172,10 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
173172
-i "pandas.Index.name SA01" \
174173
-i "pandas.Index.names GL08" \
175174
-i "pandas.Index.nbytes SA01" \
176-
-i "pandas.Index.ndim SA01" \
177175
-i "pandas.Index.nunique RT03" \
178176
-i "pandas.Index.putmask PR01,RT03" \
179177
-i "pandas.Index.ravel PR01,RT03" \
180178
-i "pandas.Index.reindex PR07" \
181-
-i "pandas.Index.shape SA01" \
182-
-i "pandas.Index.size SA01" \
183179
-i "pandas.Index.slice_indexer PR07,RT03,SA01" \
184180
-i "pandas.Index.slice_locs RT03" \
185181
-i "pandas.Index.str PR01,SA01" \
@@ -356,7 +352,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
356352
-i "pandas.Series.mode SA01" \
357353
-i "pandas.Series.mul PR07" \
358354
-i "pandas.Series.nbytes SA01" \
359-
-i "pandas.Series.ndim SA01" \
360355
-i "pandas.Series.ne PR07,SA01" \
361356
-i "pandas.Series.nunique RT03" \
362357
-i "pandas.Series.pad PR01,SA01" \
@@ -376,7 +371,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
376371
-i "pandas.Series.rtruediv PR07" \
377372
-i "pandas.Series.sem PR01,RT03,SA01" \
378373
-i "pandas.Series.shape SA01" \
379-
-i "pandas.Series.size SA01" \
380374
-i "pandas.Series.skew RT03,SA01" \
381375
-i "pandas.Series.sparse PR01,SA01" \
382376
-i "pandas.Series.sparse.density SA01" \

pandas/core/base.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,13 @@ def ndim(self) -> Literal[1]:
355355
"""
356356
Number of dimensions of the underlying data, by definition 1.
357357
358+
See Also
359+
--------
360+
Series.size: Return the number of elements in the underlying data.
361+
Series.shape: Return a tuple of the shape of the underlying data.
362+
Series.dtype: Return the dtype object of the underlying data.
363+
Series.values: Return Series as ndarray or ndarray-like depending on the dtype.
364+
358365
Examples
359366
--------
360367
>>> s = pd.Series(["Ant", "Bear", "Cow"])
@@ -440,6 +447,13 @@ def size(self) -> int:
440447
"""
441448
Return the number of elements in the underlying data.
442449
450+
See Also
451+
--------
452+
Series.ndim: Number of dimensions of the underlying data, by definition 1.
453+
Series.shape: Return a tuple of the shape of the underlying data.
454+
Series.dtype: Return the dtype object of the underlying data.
455+
Series.values: Return Series as ndarray or ndarray-like depending on the dtype.
456+
443457
Examples
444458
--------
445459
For Series:

pandas/core/indexes/base.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7104,6 +7104,13 @@ def shape(self) -> Shape:
71047104
"""
71057105
Return a tuple of the shape of the underlying data.
71067106
7107+
See Also
7108+
--------
7109+
Index.size: Return the number of elements in the underlying data.
7110+
Index.ndim: Number of dimensions of the underlying data, by definition 1.
7111+
Index.dtype: Return the dtype object of the underlying data.
7112+
Index.values: Return an array representing the data in the Index.
7113+
71077114
Examples
71087115
--------
71097116
>>> idx = pd.Index([1, 2, 3])

pandas/io/pytables.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,11 @@ def get(self, key: str):
786786
object
787787
Same type as object stored in file.
788788
789+
See Also
790+
--------
791+
HDFStore.get_node : Returns the node with the key.
792+
HDFStore.get_storer : Returns the storer object for a key.
793+
789794
Examples
790795
--------
791796
>>> df = pd.DataFrame([[1, 2], [3, 4]], columns=["A", "B"])

0 commit comments

Comments
 (0)