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
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,9 @@ repos:
stages: [pre-commit]
language: system
entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace
- id: remove-init-file-breaking-ns-packaging
name: Remove __init__.py files from ./cfa/
files: ^cfa/.*__init__\.py$
stages: [pre-commit]
language: system
entry: bash -c 'find ./cfa -maxdepth 1 -name "__init__.py" -delete'
4 changes: 2 additions & 2 deletions cfa/dataops/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def get_dataframe(
else:
df = pl.concat(
[pl.read_csv(blob) for blob in blob_files],
how="vertical_relaxed",
how="diagonal",
)
if pl_lazy:
df = df.lazy()
Expand Down Expand Up @@ -461,7 +461,7 @@ def get_dataframe(
else:
df = pl.concat(
[pl.read_parquet(pq_file) for pq_file in blob_files],
how="vertical_relaxed",
how="diagonal",
)
if pl_lazy:
df = df.lazy()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ dependencies = [
]

[tool.setuptools.packages.find]
include = ["${catalog_namespace}*"]
namespaces = true
include = ["cfa*"]

[project.optional-dependencies]
dev = [
Expand Down
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ The versioning pattern is `YYYY.MM.DD.micro(a/b/{none if release})

---

## [2025.12.08.0a]

### Fixed

- Polars dataframe loading+concat from csv/json files that contain varying number of columns
- Namespace package configuration for created catalogs

## [2025.11.18.0a]

### Updated
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.11.18.0a"
version = "2025.12.08.0a"
description = "Data cataloging, ETL, modeling, verification, and validation for CFA"
authors = [
{ name = "Phil Rogers", email = "ap66@cdc.gov" },
Expand Down