From aa8b8b1554aa97c8a9a6707ae998740ae4c02a4a Mon Sep 17 00:00:00 2001 From: Fletcher Wilson <145033473+fwilson12@users.noreply.github.com> Date: Fri, 22 May 2026 11:10:15 -0500 Subject: [PATCH] Update combine_data.py #136 Added Docstring comment for combine_json_files function in combine_data --- combine_data.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/combine_data.py b/combine_data.py index 336dd308..d0e15936 100644 --- a/combine_data.py +++ b/combine_data.py @@ -2,6 +2,18 @@ import sys def combine_json_files(output_file, input_files): + ''' + Combines multiple properly formatted JSON files into a single JSON file. + Each input file should contain a JSON array of objects. The combined output will be a single + JSON array containing all objects from the input files. + + Parameters: + output_file (str): The path to the output JSON file. + input_files (list (str)): A list of paths to the input JSON files. + + Returns: + None + ''' combined_data = [] for file in input_files: