CSVSourceΒΆ
Defined in fynance.data
- class CSVSource[source]
Bases:
BaseDataSourceRead a CSV file into a
PriceSeries(or a mapping).- load(path, value_col=None, index_col=None, freq=None, **kwargs)[source]
Load
path.- Parameters:
- pathstr or pathlib.Path
CSV file.
- value_colstr, optional
Value column; if omitted, the single non-index column is used, or a mapping is returned for several value columns.
- index_colstr, optional
Temporal index column; if omitted, the first date/datetime column.
- freqstr, optional
Frequency tag carried onto the series.
- **kwargs
Forwarded to
polars.read_csv.