Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 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
1 change: 1 addition & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ def filter(self, record):
"numpy",
"pandas",
"pyarrow",
"pyarrow.compute",
"pytorch_lightning",
"scipy",
"setproctitle",
Expand Down
20 changes: 19 additions & 1 deletion doc/source/data/api/expressions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,22 @@ instantiate them directly, but you may encounter them when working with expressi
BinaryExpr
UnaryExpr
UDFExpr
StarExpr
StarExpr

Expression namespaces
------------------------------------

These namespace classes provide specialized operations for list, string, and struct columns.
You access them through properties on expressions: ``.list``, ``.str``, and ``.struct``.

.. autoclass:: _ListNamespace
:members:
:exclude-members: _expr

.. autoclass:: _StringNamespace
:members:
:exclude-members: _expr

.. autoclass:: _StructNamespace
:members:
:exclude-members: _expr
14 changes: 14 additions & 0 deletions python/ray/data/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,20 @@ py_test(
],
)

py_test(
name = "test_namespace_expressions",
size = "medium",
srcs = ["tests/test_namespace_expressions.py"],
tags = [
"exclusive",
"team:data",
],
deps = [
":conftest",
"//:ray_lib",
],
)

py_test(
name = "test_context",
size = "small",
Expand Down
Loading