|
11 | 11 | import traceback |
12 | 12 |
|
13 | 13 | # Third-party |
14 | | -# import pandas as pd |
15 | 14 | import pandas as pd |
16 | 15 |
|
17 | 16 | # Add parent directory so shared can be imported |
@@ -129,49 +128,6 @@ def process_totals_by_restriction(args, count_data): |
129 | 128 | data_to_csv(args, data, file_path) |
130 | 129 |
|
131 | 130 |
|
132 | | -# def load_quarter_data(quarter): |
133 | | -# """ |
134 | | -# Load data for a specific quarter. |
135 | | -# """ |
136 | | -# file_path = os.path.join(PATHS["data"], f"{quarter}", |
137 | | -# "1-fetch", "github_fetched") |
138 | | -# if not os.path.exists(file_path): |
139 | | -# LOGGER.error(f"Data file for quarter {quarter} not found.") |
140 | | -# return None |
141 | | -# return pd.read_csv(file_path) |
142 | | - |
143 | | - |
144 | | -# def compare_data(current_quarter, previous_quarter): |
145 | | -# """ |
146 | | -# Compare data between two quarters. |
147 | | -# """ |
148 | | -# current_data = load_quarter_data(current_quarter) |
149 | | -# previous_data = load_quarter_data(previous_quarter) |
150 | | - |
151 | | -# if current_data is None or previous_data is None: |
152 | | -# return |
153 | | - |
154 | | -# Process data to compare totals |
155 | | - |
156 | | - |
157 | | -# def parse_arguments(): |
158 | | -# """ |
159 | | -# Parses command-line arguments, returns parsed arguments. |
160 | | -# """ |
161 | | -# LOGGER.info("Parsing command-line arguments") |
162 | | -# parser = argparse.ArgumentParser( |
163 | | -# description="Google Custom Search Comparison Report") |
164 | | -# parser.add_argument( |
165 | | -# "--current_quarter", type=str, required=True, |
166 | | -# help="Current quarter for comparison (e.g., 2024Q3)" |
167 | | -# ) |
168 | | -# parser.add_argument( |
169 | | -# "--previous_quarter", type=str, required=True, |
170 | | -# help="Previous quarter for comparison (e.g., 2024Q2)" |
171 | | -# ) |
172 | | -# return parser.parse_args() |
173 | | - |
174 | | - |
175 | 131 | def main(): |
176 | 132 | args = parse_arguments() |
177 | 133 | shared.paths_log(LOGGER, PATHS) |
|
0 commit comments