Skip to content

Commit 5089ea8

Browse files
committed
type frame.py & series.py
1 parent a47d0df commit 5089ea8

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
@@ -2470,7 +2470,7 @@ def _from_arrays(
24702470
index,
24712471
dtype: Dtype | None = None,
24722472
verify_integrity: bool = True,
2473-
) -> DataFrame:
2473+
) -> Self:
24742474
"""
24752475
Create DataFrame from a list of arrays corresponding to the columns.
24762476
@@ -4551,7 +4551,7 @@ def eval(self, expr: str, *, inplace: bool = False, **kwargs) -> Any | None:
45514551

45524552
return _eval(expr, inplace=inplace, **kwargs)
45534553

4554-
def select_dtypes(self, include=None, exclude=None) -> DataFrame:
4554+
def select_dtypes(self, include=None, exclude=None) -> Self:
45554555
"""
45564556
Return a subset of the DataFrame's columns based on the column dtypes.
45574557

pandas/core/series.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4360,7 +4360,7 @@ def map(
43604360
self, method="map"
43614361
)
43624362

4363-
def _gotitem(self, key, ndim, subset=None) -> Series:
4363+
def _gotitem(self, key, ndim, subset=None) -> Self:
43644364
"""
43654365
Sub-classes to define. Return a sliced object.
43664366

0 commit comments

Comments
 (0)