limix.io.csv.read

limix.io.csv.read(filename, sep=None, header=True)[source]

Read a CSV file.

Parameters:
  • filename (str) – Path to a CSV file.
  • sep (str) – Separator. None triggers auto-detection. Defaults to None.
  • header (bool) – True for file with a header; False otherwise. Defaults to True.
Returns:

data

Return type:

dask dataframes

Examples

>>> from limix.io.csv import read
>>> from limix.example import file_example
>>>
>>> with file_example("data.csv") as filepath:
...     df = read(filepath)
...     print(df)  
   pheno   attr1 attr2 attr3
0    sex  string    10     a
1   size   float    -3     b
2  force     int     f     c