CsvFile#
- class pyopenms.CsvFile#
Bases:
TextFileThis class handles csv files. Currently only loading is implemented. Does NOT support comment lines!
- __init__() None#
- __init__(arg: pyopenms.CsvFile, /) None
- __init__(arg0: str, arg1: str, arg2: bool, arg3: int, /) None
Methods
__init__()addLine(line)Appends a line to the internal buffer
addRow(list)Add a row to the buffer
clear()Clears the buffer
getRow(row)Writes all items from a row to list
load(filename, is, ie, first_n)Loads data from a text file
store(filename)Stores the buffer's content into a file
- addLine(line: str) None#
Appends a line to the internal buffer
- addRow(list: list[str]) None#
Add a row to the buffer
- clear() None#
Clears the buffer
- getRow(row: int) tuple#
Writes all items from a row to list
- load(filename: str, is: str = ', ', ie: bool = False, first_n: int = -1) None#
Loads data from a text file
- store(filename: str) None#
Stores the buffer’s content into a file