Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions cfa/dataops/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,10 @@ def get_dataframe(
df.reset_index(inplace=True, drop=True)
else:
df = pl.concat(
[pl.read_csv(blob) for blob in blob_files],
[
pl.read_csv(blob, infer_schema_length=None)
for blob in blob_files
],
how="diagonal",
)
if pl_lazy:
Expand All @@ -434,7 +437,11 @@ def get_dataframe(
df.reset_index(inplace=True, drop=True)
else:
df = pl.concat(
[pl.read_json(blob) for blob in blob_files],
[
pl.read_json(blob, infer_schema_length=None)
for blob in blob_files
],
how="diagonal",
)
if pl_lazy:
df = df.lazy()
Expand All @@ -448,6 +455,7 @@ def get_dataframe(
else:
df = pl.concat(
[pl.read_ndjson(blob) for blob in blob_files],
how="diagonal",
)
if pl_lazy:
df = df.lazy()
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ The versioning pattern is `YYYY.MM.DD.micro(a/b/{none if release})

---

## [2025.12.08.1a]

### Fixed

- Polars dataframe loading+concat from csv/json files that contain varying number of columns (more updates)

## [2025.12.08.0a]

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "cfa.dataops"
version = "2025.12.08.0a"
version = "2025.12.08.1a"
description = "Data cataloging, ETL, modeling, verification, and validation for CFA"
authors = [
{ name = "Phil Rogers", email = "ap66@cdc.gov" },
Expand Down