omicverse.io.read_csv#
- omicverse.io.read_csv(filepath_or_buffer=None, *, sep=None, on_duplicate='warn', **kwargs)[source]#
Read a CSV / TSV file via
pandas.read_csvwith a mandatory duplicate-column scan on the raw header.- Parameters:
filepath_or_buffer (default:
None) – Same aspandas.read_csv. Accepts a path-like, a URL, or a file-like object. The duplicate scan only runs when the input is a real on-disk file path.sep (
str|None(default:None)) – Delimiter. Inferred from extension whenNone(.csv→,,.tsv/.txt/.tab→\t).on_duplicate (
str(default:'warn')) –Action when duplicate column labels are found in the raw header. One of:
"warn"(default) — print a remediation-pointing message to stdout and continue with pandas’s auto-rename."raise"— raiseValueErrorwith the same message."ignore"— silent passthrough; identical topandas.read_csv.
**kwargs – Any other keyword argument accepted by
pandas.read_csv(for exampleindex_col,dtype,usecols,comment).
- Return type: