Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pandas/io/parsers/readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
AbstractMethodError,
ParserWarning,
)
from pandas.util._decorators import Appender
from pandas.util._decorators import (
Appender,
set_module,
)
from pandas.util._exceptions import find_stack_level
from pandas.util._validators import check_dtype_backend

Expand Down Expand Up @@ -771,6 +774,7 @@ def read_csv(
% "filepath_or_buffer",
)
)
@set_module("pandas")
def read_csv(
filepath_or_buffer: FilePath | ReadCsvBuffer[bytes] | ReadCsvBuffer[str],
*,
Expand Down Expand Up @@ -906,6 +910,7 @@ def read_table(
% "filepath_or_buffer",
)
)
@set_module("pandas")
def read_table(
filepath_or_buffer: FilePath | ReadCsvBuffer[bytes] | ReadCsvBuffer[str],
*,
Expand Down Expand Up @@ -1023,6 +1028,7 @@ def read_fwf(
) -> DataFrame: ...


@set_module("pandas")
def read_fwf(
filepath_or_buffer: FilePath | ReadCsvBuffer[bytes] | ReadCsvBuffer[str],
*,
Expand Down
3 changes: 3 additions & 0 deletions pandas/tests/api/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,9 @@ def test_set_module():
assert pd.Period.__module__ == "pandas"
assert pd.Timestamp.__module__ == "pandas"
assert pd.Timedelta.__module__ == "pandas"
assert pd.read_csv.__module__ == "pandas"
assert pd.read_table.__module__ == "pandas"
assert pd.read_fwf.__module__ == "pandas"
assert pd.Series.__module__ == "pandas"
assert pd.date_range.__module__ == "pandas"
assert pd.bdate_range.__module__ == "pandas"
Expand Down