MCPcopy Create free account
hub / github.com/apache/arrow / read_csv

Method read_csv

python/pyarrow/tests/test_csv.py:796–809  ·  view source on GitHub ↗

Reads the CSV file into memory using pyarrow's read_csv csv The CSV bytes args Positional arguments to be forwarded to pyarrow's read_csv validate_full Whether or not to fully validate the resulting table kwargs Keyword arguments to be forwarded to pyarrow's

(self, csv, *args, validate_full=True, **kwargs)

Source from the content-addressed store, hash-verified

794class BaseCSVTableRead(BaseTestCSV):
795
796 def read_csv(self, csv, *args, validate_full=True, **kwargs):
797 """
798 Reads the CSV file into memory using pyarrow's read_csv
799 csv The CSV bytes
800 args Positional arguments to be forwarded to pyarrow's read_csv
801 validate_full Whether or not to fully validate the resulting table
802 kwargs Keyword arguments to be forwarded to pyarrow's read_csv
803 """
804 assert isinstance(self.use_threads, bool) # sanity check
805 read_options = kwargs.setdefault('read_options', ReadOptions())
806 read_options.use_threads = self.use_threads
807 table = read_csv(csv, *args, **kwargs)
808 table.validate(full=validate_full)
809 return table
810
811 def read_bytes(self, b, **kwargs):
812 return self.read_csv(pa.py_buffer(b), **kwargs)

Calls 2

ReadOptionsClass · 0.90
validateMethod · 0.45

Tested by

no test coverage detected