Skip to content

Feature/minor improvements - #3

Merged
Edwardvaneechoud merged 3 commits into
mainfrom
feature/minor-improvements
Mar 18, 2026
Merged

Feature/minor improvements#3
Edwardvaneechoud merged 3 commits into
mainfrom
feature/minor-improvements

Conversation

@Edwardvaneechoud

Copy link
Copy Markdown
Owner

This pull request updates the documentation and improves error handling in the pyfloe library. The main focus is on standardizing import usage in all documentation examples and adding validation to catch missing columns in group-by and aggregation operations.

Documentation improvements:

  • Standardized all code examples in the documentation (README.md, docs/index.md, docs/expressions.md, docs/datetime.md, docs/io.md, docs/operations.md, docs/streaming.md) to use import pyfloe as pf and reference functions via the pf. namespace, instead of individual imports. This makes examples more consistent and easier to follow. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15]

Core library enhancements:

  • Added validation in LazyFrame.group_by() to raise a ValueError if any specified group-by columns are missing from the schema, providing clear feedback about available columns.
  • Added validation in LazyFrame.agg() to check that all referenced columns in aggregation expressions exist in the schema, raising a ValueError if not.
  • Updated documentation strings in LazyFrame.agg() to use the new import style for consistency.

Other changes:

  • Bumped the package version to 0.1.2 in pyproject.toml.
  • Minor internal import fix in src/pyfloe/core.py.

@Edwardvaneechoud
Edwardvaneechoud merged commit e683a2d into main Mar 18, 2026
4 checks passed
@Edwardvaneechoud
Edwardvaneechoud deleted the feature/minor-improvements branch March 18, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant