MCPcopy Create free account
hub / github.com/apache/arrow / make_empty_csv

Function make_empty_csv

python/pyarrow/tests/test_csv.py:86–90  ·  view source on GitHub ↗
(column_names)

Source from the content-addressed store, hash-verified

84
85
86def make_empty_csv(column_names):
87 csv = io.StringIO()
88 csv.write(",".join(column_names))
89 csv.write("\n")
90 return csv.getvalue().encode()
91
92
93def check_options_class(cls, **attr_values):

Callers 1

Calls 3

writeMethod · 0.45
joinMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected