Skip to content

Commit

Permalink
docs: add example to Value.hash()
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCrews authored and cpcloud committed Oct 5, 2023
1 parent 43b798c commit 501ae92
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ibis/expr/types/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ def hash(self) -> ir.IntegerValue:
-------
IntegerValue
The hash value of `self`
Examples
--------
>>> import ibis
>>> ibis.options.interactive = True
>>> ibis.literal("hello").hash() # doctest: +SKIP
-4155090522938856779
"""
return ops.Hash(self).to_expr()

Expand Down

0 comments on commit 501ae92

Please sign in to comment.