Skip to content

Commit 58df051

Browse files
committed
fix type
1 parent 5947e3e commit 58df051

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pandas/core/apply.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1824,7 +1824,7 @@ def relabel_result(
18241824
fun = [
18251825
com.get_callable_name(f) if not isinstance(f, str) else f for f in fun
18261826
]
1827-
col_idx_order = Index(s.index).get_indexer(fun)
1827+
col_idx_order = list(Index(s.index).get_indexer(fun))
18281828
col_idx_order = [idx for idx in col_idx_order if 0 <= idx < len(s)]
18291829
s = s.iloc[col_idx_order]
18301830

pandas/tests/groupby/aggregate/test_aggregate.py

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def test_agg_ser_multi_key(df):
6363

6464

6565
def test_agg_with_missing_values():
66+
# GH#58810
6667
missing_df = DataFrame(
6768
{
6869
"nan": [np.nan, np.nan, np.nan, np.nan],

0 commit comments

Comments
 (0)