MCPcopy
hub / github.com/StructuredLabs/preswald / to_df

Method to_df

preswald/engine/managers/data.py:133–135  ·  view source on GitHub ↗

Get entire CSV as a DataFrame

(self)

Source from the content-addressed store, hash-verified

131 return self._duckdb.execute(sql).df()
132
133 def to_df(self) -> pd.DataFrame:
134 """Get entire CSV as a DataFrame"""
135 return self._duckdb.execute(f"SELECT * FROM {self._table_name}").df()
136
137
138class CSVSource(DataSource):

Callers

nothing calls this directly

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected