File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 32
32
AbstractMethodError ,
33
33
ParserWarning ,
34
34
)
35
- from pandas .util ._decorators import Appender
35
+ from pandas .util ._decorators import (
36
+ Appender ,
37
+ set_module ,
38
+ )
36
39
from pandas .util ._exceptions import find_stack_level
37
40
from pandas .util ._validators import check_dtype_backend
38
41
@@ -771,6 +774,7 @@ def read_csv(
771
774
% "filepath_or_buffer" ,
772
775
)
773
776
)
777
+ @set_module ("pandas" )
774
778
def read_csv (
775
779
filepath_or_buffer : FilePath | ReadCsvBuffer [bytes ] | ReadCsvBuffer [str ],
776
780
* ,
@@ -906,6 +910,7 @@ def read_table(
906
910
% "filepath_or_buffer" ,
907
911
)
908
912
)
913
+ @set_module ("pandas" )
909
914
def read_table (
910
915
filepath_or_buffer : FilePath | ReadCsvBuffer [bytes ] | ReadCsvBuffer [str ],
911
916
* ,
@@ -1023,6 +1028,7 @@ def read_fwf(
1023
1028
) -> DataFrame : ...
1024
1029
1025
1030
1031
+ @set_module ("pandas" )
1026
1032
def read_fwf (
1027
1033
filepath_or_buffer : FilePath | ReadCsvBuffer [bytes ] | ReadCsvBuffer [str ],
1028
1034
* ,
Original file line number Diff line number Diff line change @@ -417,6 +417,9 @@ def test_set_module():
417
417
assert pd .Period .__module__ == "pandas"
418
418
assert pd .Timestamp .__module__ == "pandas"
419
419
assert pd .Timedelta .__module__ == "pandas"
420
+ assert pd .read_csv .__module__ == "pandas"
421
+ assert pd .read_table .__module__ == "pandas"
422
+ assert pd .read_fwf .__module__ == "pandas"
420
423
assert pd .Series .__module__ == "pandas"
421
424
assert pd .date_range .__module__ == "pandas"
422
425
assert pd .bdate_range .__module__ == "pandas"
You can’t perform that action at this time.
0 commit comments