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

Class Table

python/pathway/internals/table.py:53–3159  ·  view source on GitHub ↗

Collection of named columns over identical universes. Example: >>> import pathway as pw >>> t1 = pw.debug.table_from_markdown(''' ... age | owner | pet ... 10 | Alice | dog ... 9 | Bob | dog ... 8 | Alice | cat ... 7 | Bob | dog ... ''') >>> isins

Source from the content-addressed store, hash-verified

51
52
53class Table(
54 Joinable,
55 OperatorInput,
56 Generic[TSchema],
57):
58 """Collection of named columns over identical universes.
59
60 Example:
61
62 >>> import pathway as pw
63 >>> t1 = pw.debug.table_from_markdown('''
64 ... age | owner | pet
65 ... 10 | Alice | dog
66 ... 9 | Bob | dog
67 ... 8 | Alice | cat
68 ... 7 | Bob | dog
69 ... ''')
70 >>> isinstance(t1, pw.Table)
71 True
72 """
73
74 if TYPE_CHECKING:
75 from pathway.stdlib.ordered import diff # type: ignore[misc]
76 from pathway.stdlib.statistical import interpolate # type: ignore[misc]
77 from pathway.stdlib.temporal import ( # type: ignore[misc]
78 add_update_timestamp_utc,
79 asof_join,
80 asof_join_left,
81 asof_join_outer,
82 asof_join_right,
83 asof_now_join,
84 asof_now_join_inner,
85 asof_now_join_left,
86 inactivity_detection,
87 interval_join,
88 interval_join_inner,
89 interval_join_left,
90 interval_join_outer,
91 interval_join_right,
92 window_join,
93 window_join_inner,
94 window_join_left,
95 window_join_outer,
96 window_join_right,
97 windowby,
98 )
99 from pathway.stdlib.viz import ( # type: ignore[misc]
100 _repr_mimebundle_,
101 plot,
102 show,
103 )
104
105 _columns: dict[str, clmn.Column]
106 _schema: type[Schema]
107 _id_column: clmn.IdColumn
108 _rowwise_context: clmn.RowwiseContext
109 _source: SetOnceProperty[OutputHandle] = SetOnceProperty()
110 """Lateinit by operator."""

Callers 14

get_connectors_tableMethod · 0.90
get_operators_tableMethod · 0.90
_joinMethod · 0.90
_create_internal_tableFunction · 0.90
__gradual_broadcastMethod · 0.85
_restrictMethod · 0.85
_flattenMethod · 0.85
sortMethod · 0.85
_table_with_contextMethod · 0.85
_with_same_universeMethod · 0.85
_materializeMethod · 0.85

Calls 1

SetOncePropertyClass · 0.90

Tested by

no test coverage detected