MCPcopy Index your code
hub / github.com/Safiullah-Rahu/CSV-AI / load_csv

Function load_csv

app/data/loader.py:77–123  ·  view source on GitHub ↗

Load a CSV from a path, bytes, or file-like object. Raises :class:`DataError` on failure with a readable message. Never silently swallows decoding errors.

(
    source: Union[str, bytes, IO[bytes]],
    *,
    source_name: Optional[str] = None,
    nrows: Optional[int] = None,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

_render_upload_sectionFunction · 0.90
test_loads_utf8_csvFunction · 0.90
test_rejects_empty_inputFunction · 0.90
test_accepts_filelikeFunction · 0.90

Calls 5

DataErrorClass · 0.90
_read_bytesFunction · 0.85
_detect_encodingFunction · 0.85
_detect_delimiterFunction · 0.85
LoadedDatasetClass · 0.85

Tested by 5

test_loads_utf8_csvFunction · 0.72
test_rejects_empty_inputFunction · 0.72
test_accepts_filelikeFunction · 0.72