File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -659,6 +659,7 @@ def read_table(
659
659
low_memory = _c_parser_defaults ["low_memory" ],
660
660
memory_map = False ,
661
661
float_precision = None ,
662
+ storage_options : StorageOptions = None ,
662
663
):
663
664
# locals() should never be modified
664
665
kwds = locals ().copy ()
Original file line number Diff line number Diff line change 13
13
read_parquet ,
14
14
read_pickle ,
15
15
read_stata ,
16
+ read_table ,
16
17
)
17
18
import pandas ._testing as tm
18
19
from pandas .util import _test_decorators as td
@@ -122,6 +123,16 @@ def test_csv_options(fsspectest):
122
123
assert fsspectest .test [0 ] == "csv_read"
123
124
124
125
126
+ def test_read_table_options (fsspectest ):
127
+ df = DataFrame ({"a" : [0 ]})
128
+ df .to_csv (
129
+ "testmem://test/test.csv" , storage_options = {"test" : "csv_write" }, index = False
130
+ )
131
+ assert fsspectest .test [0 ] == "csv_write"
132
+ read_table ("testmem://test/test.csv" , storage_options = {"test" : "csv_read" })
133
+ assert fsspectest .test [0 ] == "csv_read"
134
+
135
+
125
136
@pytest .mark .parametrize ("extension" , ["xlsx" , "xls" ])
126
137
def test_excel_options (fsspectest , extension ):
127
138
if extension == "xls" :
You can’t perform that action at this time.
0 commit comments