MCPcopy Create free account
hub / github.com/ml-explore/mlx-data / CSVReader

Method CSVReader

mlx/data/core/CSVReader.cpp:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace core {
11
12CSVReader::CSVReader(const std::string& file, const char sep, const char quote)
13 : filename_(file), sep_(sep), quote_(quote) {
14 uf_ = std::make_shared<std::ifstream>(filename_, std::ios_base::binary);
15 f_ = std::make_shared<bxz::istream>(*uf_);
16 if (!uf_->good() || !f_->good()) {
17 throw std::runtime_error(
18 "CSVReader: could not open file <" + filename_ + ">");
19 }
20}
21
22CSVReader::CSVReader(
23 const std::shared_ptr<std::istream>& uf,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected