From fa23718885d0d0a29851206115851c3fffc9094d Mon Sep 17 00:00:00 2001 From: Andrew Gazelka Date: Fri, 4 Oct 2024 19:20:53 -0700 Subject: [PATCH] add docs --- daft/expressions/expressions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daft/expressions/expressions.py b/daft/expressions/expressions.py index 13d5650d59..2f9b99d3fb 100644 --- a/daft/expressions/expressions.py +++ b/daft/expressions/expressions.py @@ -2930,6 +2930,10 @@ def value_counts(self) -> Expression: original list of type X, and the values are UInt64 counts representing the number of times each element appears in the list. + Note: + This function does not work for nested types. For example, it will not produce a map + with lists as keys. + Example: >>> import daft >>> df = daft.from_pydict({"letters": [["a", "b", "a"], ["b", "c", "b", "c"]]})