We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Value.name
1 parent 5b0f987 commit dd66af2Copy full SHA for dd66af2
ibis/expr/types/generic.py
@@ -42,11 +42,26 @@ def name(self, name):
42
Examples
43
--------
44
>>> import ibis
45
- >>> t = ibis.table(dict(a="int64"), name="t")
+ >>> ibis.options.interactive = True
46
+ >>> t = ibis.memtable({"a": [1, 2]}, name="t")
47
+ >>> t.a
48
+ ┏━━━━━━━┓
49
+ ┃ a ┃
50
+ ┡━━━━━━━┩
51
+ │ int64 │
52
+ ├───────┤
53
+ │ 1 │
54
+ │ 2 │
55
+ └───────┘
56
>>> t.a.name("b")
- r0 := UnboundTable: t
- a int64
- b: r0.a
57
58
+ ┃ b ┃
59
60
61
62
63
64
65
"""
66
# TODO(kszucs): shouldn't do simplification here, but rather later
67
# when simplifying the whole operation tree
0 commit comments