Skip to content

Conversation

timsaucer
Copy link
Member

Which issue does this PR close?

Closes #713
Closes #807
Closes #810

Also no issue assigned but fixes a bug in functions.array()

Rationale for this change

These are a handful of usability improvements.

What changes are included in this PR?

  • Adds _repr_html_ to get a nice output in notebooks
  • Allows for using [] to access array elements in an expression. If column a is a list of integers you could do col(a)[0] to get the first element in the list.
  • Fixes an error in array so it operates correctly.
  • Adds DataFrame.transform() which makes chaining dataframe operations easier.
reprhtml

Are there any user-facing changes?

No API changes, but the above all enhance usability.

@timsaucer
Copy link
Member Author

timsaucer commented Aug 25, 2024

TODO:

  • Add unit tests for dataframe transform
  • Add unit test for repr_html
  • Add documentation example for chaining dataframe operations
  • Add documentation for how to access array and struct elements to the user guide

@timsaucer timsaucer marked this pull request as ready for review August 27, 2024 12:01
@timsaucer timsaucer mentioned this pull request Aug 27, 2024
9 tasks
@timsaucer timsaucer force-pushed the feature/small-features branch from 7553f8b to 9dca966 Compare August 28, 2024 08:43
@timsaucer timsaucer force-pushed the feature/small-features branch from 9dca966 to 497d490 Compare August 31, 2024 12:31
@timsaucer
Copy link
Member Author

@andygrove These should be good to go. All of the conflicts were trivial "include both" on the rebase.

@andygrove andygrove merged commit 909b809 into apache:main Sep 2, 2024
15 checks passed
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.

Support array expressions for __getitem__ Add DataFrame transform function Render tables using html in notebooks.

3 participants