feat: implement logistic regression pipeline with automated JASP-formatted report generation and data inspection utilities

This commit is contained in:
Victor Phan
2026-07-09 11:29:27 +07:00
parent 1720207f82
commit d32476ef94
8 changed files with 236 additions and 25 deletions
@@ -0,0 +1,22 @@
import sys
sys.stdout.reconfigure(encoding='utf-8')
import pandas as pd
import os
file_path = r'c:\Users\NASPC\Documents\Du án tại SG tháng 8\KẾT QUẢ PHÂN TÍCH.xlsx'
if not os.path.exists(file_path):
print("File not found")
sys.exit()
print(f"Reading file: {file_path}")
xl = pd.ExcelFile(file_path)
print(f"Sheet names: {xl.sheet_names}\n")
for sheet in xl.sheet_names:
print(f"--- Sheet: {sheet} ---")
df = xl.parse(sheet)
print(f"Shape: {df.shape}")
print(f"Columns: {list(df.columns)}")
print(f"First few rows:\n{df.head(3)}\n")