Consolidate dataframes DSL into select
#18
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #9
Background
Dataframe DSL didn't really cut-down on boilerplate code and wasn't that different from
polars/pandasAPIs as-is (which have stronger typing guarantees). To differentiate this a bit, moved a lot of functionality intoselectand a string-based syntax which also matchesDesign (high-level)
A,B, ... ,Z. In-order based on the dataframes passed in the new paramothersin theselectfunctionfromclause inselectsyntax as follows:joinintofrom A <- B on [colname],<-for left join,<>for inner joingroup_byintofrom A => groupby[colname | agg_fn]which usesall()by defaultOther notes
+>syntax which didn't seem that useful (though good to think through). This really simplifies the code which is worth it*-based expressions (slicing, "all columns except", regex match, etc.)