MCPcopy
hub / github.com/dmlc/dgl / write

Method write

tools/distpartitioning/array_readwriter/csv.py:29–39  ·  view source on GitHub ↗
(self, path, arr)

Source from the content-addressed store, hash-verified

27 return arr.to_pandas().to_numpy()
28
29 def write(self, path, arr):
30 logging.debug(
31 "Writing to %s using CSV format with configuration %s"
32 % (path, self.__dict__)
33 )
34 write_options = pyarrow.csv.WriteOptions(
35 include_header=False, delimiter=self.delimiter
36 )
37 arr = pyarrow.Table.from_pandas(pd.DataFrame(arr))
38 pyarrow.csv.write_csv(arr, path, write_options=write_options)
39 logging.debug("Done writing to %s" % path)

Callers 15

chunk_numpy_arrayFunction · 0.45
_random_partitionFunction · 0.45
gen_parmetis_input_argsFunction · 0.45
test_parmetis_wrapperFunction · 0.45
test_submit_jobsFunction · 0.45
test_array_readwriterFunction · 0.45
_chunk_numpy_arrayFunction · 0.45
_test_pipelineFunction · 0.45
_get_test_dataFunction · 0.45
test_extract_archiveFunction · 0.45
test_extract_archiveFunction · 0.45
prepare_distFunction · 0.45

Calls 1

debugMethod · 0.80

Tested by 15

test_parmetis_wrapperFunction · 0.36
test_submit_jobsFunction · 0.36
test_array_readwriterFunction · 0.36
_chunk_numpy_arrayFunction · 0.36
_test_pipelineFunction · 0.36
_get_test_dataFunction · 0.36
test_extract_archiveFunction · 0.36
test_extract_archiveFunction · 0.36
prepare_distFunction · 0.36
test_calculate_file_hashFunction · 0.36
test_calculate_dir_hashFunction · 0.36