MCPcopy Create free account
hub / github.com/BIT-DataLab/LakeBench / merge_csv

Function merge_csv

union/D3L/query.py:75–84  ·  view source on GitHub ↗
(output_folder, combined_file_path)

Source from the content-addressed store, hash-verified

73 queue.put((-1, "test-pid"))
74
75def merge_csv(output_folder, combined_file_path):
76 csv_files = glob.glob(output_folder + "/*.csv")
77
78 combined_data = pd.DataFrame()
79
80 for csv_file in csv_files:
81 df = pd.read_csv(csv_file)
82 combined_data = pd.concat([combined_data, df], ignore_index=True)
83
84 combined_data.to_csv(combined_file_path, index=False)
85# Create an ArgumentParser object
86parser = argparse.ArgumentParser(description='Description of your program')
87

Callers 1

query.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected