Fix schema check and update import paths
- Use `collect_schema` for accurate column validation in Polars and correct relative import paths for statistical modules.
This commit is contained in:
@@ -77,7 +77,7 @@ def parse_csv(csv_path: PathLike) -> pl.LazyFrame:
|
||||
"""
|
||||
lf = pl.scan_csv(csv_path, schema_overrides={"ID": pl.String, "Data": pl.String})
|
||||
|
||||
if "Timestamp" not in lf.columns:
|
||||
if "Timestamp" not in lf.collect_schema().names():
|
||||
lf = lf.with_row_index("Timestamp")
|
||||
|
||||
byte_exprs = []
|
||||
|
||||
Reference in New Issue
Block a user