MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / get_fields

Method get_fields

dataflow_agent/storage/storage_service.py:60–63  ·  view source on GitHub ↗

Get column names / JSON keys in the dataset.

(self)

Source from the content-addressed store, hash-verified

58 return len(self._load_as_dataframe())
59
60 def get_fields(self) -> List[str]:
61 """Get column names / JSON keys in the dataset."""
62 df = self._load_as_dataframe()
63 return list(df.columns)
64
65 def fetch_all(self) -> List[Dict[str, Any]]:
66 """Load *all* records into memory (avoid for very large files)."""

Callers 1

local_tool_for_sampleFunction · 0.95

Calls 2

_load_as_dataframeMethod · 0.95
listFunction · 0.85

Tested by

no test coverage detected