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

Method read_csv

python/pyarrow/tests/test_csv.py:797–810  ·  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

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

Calls 2

ReadOptionsClass · 0.90
validateMethod · 0.45

Tested by

no test coverage detected