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

Method to_df

preswald/engine/managers/data.py:164–166  ·  view source on GitHub ↗

Get entire CSV as a DataFrame

(self)

Source from the content-addressed store, hash-verified

162 return self._duckdb.execute(sql).df()
163
164 def to_df(self) -> pd.DataFrame:
165 """Get entire CSV as a DataFrame"""
166 return self._duckdb.execute(f"SELECT * FROM {self._table_name}").df()
167
168
169class JSONSource(DataSource):

Callers 1

get_dfMethod · 0.45

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected