limix.io.csv.read

limix.io.csv.read(filename, sep=None, header=True, verbose=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.

  • verbose (bool) – True for progress information; False otherwise.

Returns

data

Return type

dask dataframes

Examples

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