read_csv
builtin
¶
read_csv(path, *, nodata=None, delimiter=',', units=None)
Reads a headed CSV; numbers become float64, nodata values become null.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str or Path
|
The file. |
required |
nodata
|
sequence of float or str
|
Values read as null. Numbers match numerically (-999 matches
|
None
|
delimiter
|
str
|
Single-byte field separator. |
","
|
units
|
dict of str to str
|
Column name to unit for columns that have none; the defaults of
|
None
|
Notes
A header such as au [g/t] or au (g/t) reads as column au with
unit g/t when the bracket holds a unit.
used in