MCPcopy Create free account
hub / github.com/pathwaycom/pathway / debug_datasource

Function debug_datasource

python/pathway/internals/datasource.py:127–135  ·  view source on GitHub ↗
(debug_data)

Source from the content-addressed store, hash-verified

125
126
127def debug_datasource(debug_data) -> StaticDataSource | None:
128 if debug_data is None:
129 return None
130 elif isinstance(debug_data, pd.DataFrame):
131 return PandasDataSource(
132 data=debug_data.copy(), schema=schema_from_pandas(debug_data)
133 )
134 else:
135 raise TypeError("not supported type of debug data")
136
137
138@dataclass(frozen=True)

Callers

nothing calls this directly

Calls 3

schema_from_pandasFunction · 0.90
PandasDataSourceClass · 0.85
copyMethod · 0.45

Tested by

no test coverage detected