Skip to content

Commit f165bd5

Browse files
amansharma612Aman Sharma
and
Aman Sharma
authored
ENH: set __module__ on concat function in concat.py (#60334)
Co-authored-by: Aman Sharma <[email protected]>
1 parent 54c88a2 commit f165bd5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pandas/core/reshape/concat.py

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import numpy as np
1818

1919
from pandas._libs import lib
20+
from pandas.util._decorators import set_module
2021
from pandas.util._exceptions import find_stack_level
2122

2223
from pandas.core.dtypes.common import (
@@ -149,6 +150,7 @@ def concat(
149150
) -> DataFrame | Series: ...
150151

151152

153+
@set_module("pandas")
152154
def concat(
153155
objs: Iterable[Series | DataFrame] | Mapping[HashableT, Series | DataFrame],
154156
*,

pandas/tests/api/test_api.py

+1
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ def test_set_module():
417417
assert pd.Period.__module__ == "pandas"
418418
assert pd.Timestamp.__module__ == "pandas"
419419
assert pd.Timedelta.__module__ == "pandas"
420+
assert pd.concat.__module__ == "pandas"
420421
assert pd.isna.__module__ == "pandas"
421422
assert pd.notna.__module__ == "pandas"
422423
assert pd.merge.__module__ == "pandas"

0 commit comments

Comments
 (0)