Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add first & last aggregation ops #144

Merged
merged 18 commits into from
Aug 18, 2023
Prev Previous commit
Next Next commit
WIP
  • Loading branch information
PatrikDurdevic committed Aug 11, 2023
commit 5aa8f6ebc327ecd2ef9eb31904fb2470b1b77c69
2 changes: 2 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ v0.6.0 (, 2023)
* Add pyarrow dependency and use pyarrow backed dtypes [#120][#120]
* Add Airbnb Reviews dataset [#125][#125]
* Add Store dataset [#131][#131]
* Add Order By Operation [#138][#138]
* Fixes
* Rename `_execute_operations_on_df` to `target` in executed prediction problem dataframe [#124][#124]
* Clean up operation description generation [#118][#118]
Expand All @@ -21,6 +22,7 @@ v0.6.0 (, 2023)
[#120]: <https://github.com/trane-dev/Trane/pull/120>
[#125]: <https://github.com/trane-dev/Trane/pull/125>
[#131]: <https://github.com/trane-dev/Trane/pull/131>
[#138]: <https://github.com/trane-dev/Trane/pull/138>


v0.5.0 (July 27, 2023)
Expand Down
2 changes: 2 additions & 0 deletions trane/ops/transformation_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class OrderByOp(TransformationOpBase):
description = " sorted by <{}>"

def generate_description(self):
if self.column_name is None:
return ""
return self.description.format(self.column_name)

def label_function(self, dataslice):
Expand Down
Loading