bca_survival.tools.bca_merger module
bca_merger - A CLI tool to merge two Excel files based on ID columns.
- Usage:
bca_merger <first_file> <second_file> <id_column_name>
- param first_file Path to the first Excel file:
- param second_file Path to the second Excel file:
- param id_column_name Name of the ID column in the first file to match with ‘StudyID’ in the second file:
- bca_survival.tools.bca_merger.merge_files(first_file_path, second_file_path, id_column_name)[source]
Merge two Excel files based on ID columns.
- Parameters:
first_file_path (
Union[str,Path]) – Path to the first Excel filesecond_file_path (
Union[str,Path]) – Path to the second Excel fileid_column_name (
str) – Name of the ID column in the first file
- Returns:
True if merge was successful, False otherwise
- Return type:
bool