Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/arrow
/ write_file
Method
write_file
python/pyarrow/tests/test_csv.py:1967–1969 ·
view source on GitHub ↗
(self, path, contents)
Source
from the content-addressed store, hash-verified
1965
csv_filename =
"compressed.csv.bz2"
1966
1967
def
write_file(self, path, contents):
1968
with
bz2.BZ2File(path,
'w'
)
as
f:
1969
f.write(contents)
1970
1971
1972
def
test_read_csv_does_not_close_passed_file_handles():
Callers
1
test_random_csv
Method · 0.45
Calls
1
write
Method · 0.45
Tested by
no test coverage detected