Skip to content

Commit 22611ad

Browse files
committed
Revert asof and squeeze docstring changes
1 parent 78bd864 commit 22611ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/generic.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ def squeeze(self, axis: Axis | None = None) -> Scalar | Series | DataFrame:
885885
dtype: int64
886886
887887
>>> even_primes.squeeze()
888-
2
888+
np.int64(2)
889889
890890
Squeezing objects with more than one value in every axis does nothing:
891891
@@ -943,7 +943,7 @@ def squeeze(self, axis: Axis | None = None) -> Scalar | Series | DataFrame:
943943
Squeezing all axes will project directly into a scalar:
944944
945945
>>> df_0a.squeeze()
946-
1
946+
np.int64(1)
947947
"""
948948
axes = range(self._AXIS_LEN) if axis is None else (self._get_axis_number(axis),)
949949
result = self.iloc[
@@ -7968,7 +7968,7 @@ def asof(self, where, subset=None):
79687968
dtype: float64
79697969
79707970
>>> s.asof(20)
7971-
2.0
7971+
np.float64(2.0)
79727972
79737973
For a sequence `where`, a Series is returned. The first value is
79747974
NaN, because the first element of `where` is before the first
@@ -7983,7 +7983,7 @@ def asof(self, where, subset=None):
79837983
NaN, even though NaN is at the index location for ``30``.
79847984
79857985
>>> s.asof(30)
7986-
2.0
7986+
np.float64(2.0)
79877987
79887988
Take all columns into consideration
79897989

0 commit comments

Comments
 (0)