straight line fn dev
This commit is contained in:
@@ -10,7 +10,7 @@ def _():
|
||||
import polars as pl
|
||||
from pathlib import Path
|
||||
|
||||
from validation import check_progress, duration_validation
|
||||
from validation import check_progress, duration_validation, check_straight_liners
|
||||
from utils import JPMCSurvey, combine_exclusive_columns, calculate_weighted_ranking_scores
|
||||
import utils
|
||||
|
||||
@@ -28,6 +28,18 @@ def _():
|
||||
)
|
||||
|
||||
|
||||
@app.cell(hide_code=True)
|
||||
def _(mo):
|
||||
mo.outline(label="Table of Contents")
|
||||
return
|
||||
|
||||
|
||||
@app.cell
|
||||
def _():
|
||||
# Select Dataset
|
||||
return
|
||||
|
||||
|
||||
@app.cell
|
||||
def _(mo):
|
||||
file_browser = mo.ui.file_browser(
|
||||
@@ -63,21 +75,27 @@ def _(JPMCSurvey, QSF_FILE, RESULTS_FILE, mo):
|
||||
return S, data_all
|
||||
|
||||
|
||||
@app.cell(hide_code=True)
|
||||
def _(Path, RESULTS_FILE, data_all, mo):
|
||||
mo.md(f"""
|
||||
---
|
||||
|
||||
# Load Data
|
||||
|
||||
**Dataset:** `{Path(RESULTS_FILE).name}`
|
||||
|
||||
{mo.ui.table(data_all.collect())}
|
||||
""")
|
||||
@app.cell
|
||||
def _():
|
||||
# check_straight_liners(S.get_ss_green_blue(data_all)[0])
|
||||
return
|
||||
|
||||
|
||||
@app.cell(hide_code=True)
|
||||
def _(Path, RESULTS_FILE, mo):
|
||||
mo.md(f"""
|
||||
|
||||
---
|
||||
# Load Data
|
||||
|
||||
**Dataset:** `{Path(RESULTS_FILE).name}`
|
||||
|
||||
|
||||
""")
|
||||
return
|
||||
|
||||
|
||||
@app.cell
|
||||
def _(check_progress, data_all, duration_validation, mo):
|
||||
mo.md(f"""
|
||||
## Data Validation
|
||||
@@ -87,14 +105,9 @@ def _(check_progress, data_all, duration_validation, mo):
|
||||
|
||||
|
||||
{duration_validation(data_all)}
|
||||
""")
|
||||
return
|
||||
|
||||
|
||||
@app.cell(hide_code=True)
|
||||
def _(mo):
|
||||
mo.md(r"""
|
||||
### ⚠️ ToDo: "straight-liner" detection and removal
|
||||
|
||||
""")
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user