Skip to content

Commit 0823380

Browse files
committed
Fix issues with trailing whitespace and isort
1 parent a061e39 commit 0823380

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

doc/source/whatsnew/v3.0.0.rst

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Other enhancements
7070
- :meth:`.DataFrameGroupBy.transform`, :meth:`.SeriesGroupBy.transform`, :meth:`.DataFrameGroupBy.agg`, :meth:`.SeriesGroupBy.agg`, :meth:`.SeriesGroupBy.apply`, :meth:`.DataFrameGroupBy.apply` now support ``kurt`` (:issue:`40139`)
7171
- :meth:`DataFrame.apply` supports using third-party execution engines like the Bodo.ai JIT compiler (:issue:`60668`)
7272
- :meth:`DataFrame.iloc` and :meth:`Series.iloc` now support boolean masks in ``__getitem__`` for more consistent indexing behavior (:issue:`60994`)
73+
- :meth:`Dataframe.select_by_substr` is a new method to select columns by substring, with the option to ignore case (defaulted to true) (:issue:`61319`)
7374
- :meth:`DataFrameGroupBy.transform`, :meth:`SeriesGroupBy.transform`, :meth:`DataFrameGroupBy.agg`, :meth:`SeriesGroupBy.agg`, :meth:`RollingGroupby.apply`, :meth:`ExpandingGroupby.apply`, :meth:`Rolling.apply`, :meth:`Expanding.apply`, :meth:`DataFrame.apply` with ``engine="numba"`` now supports positional arguments passed as kwargs (:issue:`58995`)
7475
- :meth:`Rolling.agg`, :meth:`Expanding.agg` and :meth:`ExponentialMovingWindow.agg` now accept :class:`NamedAgg` aggregations through ``**kwargs`` (:issue:`28333`)
7576
- :meth:`Series.map` can now accept kwargs to pass on to func (:issue:`59814`)

pandas/core/frame.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
from typing import (
3131
TYPE_CHECKING,
3232
Any,
33-
Literal,
3433
List,
34+
Literal,
35+
Union,
3536
cast,
3637
overload,
37-
Union
3838
)
3939
import warnings
4040

@@ -7718,7 +7718,7 @@ def nsmallest(
77187718
Nauru 337000 182 NR
77197719
"""
77207720
return selectn.SelectNFrame(self, n=n, keep=keep, columns=columns).nsmallest()
7721-
7721+
77227722
def select_by_substr(
77237723
self,
77247724
substr: Union[str, List[str]],

pandas/tests/frame/test_select_by_substr.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import pytest
2+
23
from pandas import DataFrame
34
import pandas._testing as tm
45

6+
57
class TestSelectBySubstr:
68
@pytest.fixture
79
def df(self):

0 commit comments

Comments
 (0)