Skip to content

Commit 089920e

Browse files
committed
type frame.py & series.py
1 parent a412ef2 commit 089920e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/core/frame.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2492,7 +2492,7 @@ def _from_arrays(
24922492
index,
24932493
dtype: Dtype | None = None,
24942494
verify_integrity: bool = True,
2495-
) -> DataFrame:
2495+
) -> Self:
24962496
"""
24972497
Create DataFrame from a list of arrays corresponding to the columns.
24982498
@@ -4591,7 +4591,7 @@ def eval(self, expr: str, *, inplace: bool = False, **kwargs) -> Any | None:
45914591

45924592
return _eval(expr, inplace=inplace, **kwargs)
45934593

4594-
def select_dtypes(self, include=None, exclude=None) -> DataFrame:
4594+
def select_dtypes(self, include=None, exclude=None) -> Self:
45954595
"""
45964596
Return a subset of the DataFrame's columns based on the column dtypes.
45974597

pandas/core/series.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4277,7 +4277,7 @@ def map(
42774277
self, method="map"
42784278
)
42794279

4280-
def _gotitem(self, key, ndim, subset=None) -> Series:
4280+
def _gotitem(self, key, ndim, subset=None) -> Self:
42814281
"""
42824282
Sub-classes to define. Return a sliced object.
42834283

0 commit comments

Comments
 (0)