MCPcopy
hub / github.com/pathwaycom/pathway / slice

Method slice

python/pathway/internals/table.py:475–492  ·  view source on GitHub ↗

Creates a collection of references to self columns. Supports basic column manipulation methods. Example: >>> import pathway as pw >>> t1 = pw.debug.table_from_markdown(''' ... age | owner | pet ... 10 | Alice | dog ... 9 | Bob | dog

(self)

Source from the content-addressed store, hash-verified

473
474 @property
475 def slice(self) -> TableSlice:
476 """Creates a collection of references to self columns.
477 Supports basic column manipulation methods.
478
479 Example:
480
481 >>> import pathway as pw
482 >>> t1 = pw.debug.table_from_markdown('''
483 ... age | owner | pet
484 ... 10 | Alice | dog
485 ... 9 | Bob | dog
486 ... 8 | Alice | cat
487 ... 7 | Bob | dog
488 ... ''')
489 >>> t1.slice.without("age")
490 TableSlice({'owner': <table1>.owner, 'pet': <table1>.pet})
491 """
492 return TableSlice(dict(**self), self)
493
494 @trace_user_frame
495 @desugar

Callers 15

lgeFunction · 0.45
buFunction · 0.45
j1Function · 0.45
S2Function · 0.45
pAFunction · 0.45
iFunction · 0.45
TgeFunction · 0.45
CgeFunction · 0.45
CSFunction · 0.45
KlFunction · 0.45
BreFunction · 0.45
YgeFunction · 0.45

Calls 1

TableSliceClass · 0.90

Tested by

no test coverage detected