orcus.csv

orcus.csv.read(stream, split=False, delimiters=',', text_qualifier='"')

Read a CSV file and create a orcus.Document instance object.

Parameters:
  • stream – String value, or file object containing a string stream.

  • split (bool) – If True, split data into multiple sheets when the number of rows exceeds the sheet limit. Defaults to False.

  • delimiters (str) – Delimiter characters to use. Defaults to ','.

  • text_qualifier (str) – A single character used as the text qualifier. Defaults to '"'.

Return type:

orcus.Document

Returns:

Document instance object that stores the content of the file.

Example:

from orcus import csv

with open("path/to/file.csv", "r") as f:
    doc = csv.read(f)