mirror of
https://github.com/webclinic017/drift.git
synced 2026-07-28 11:17:47 +00:00
b656f790f5
* feat(Data): resample exogenous/other datasource when their frequency is different * fix(Linter): ran * fix(Data): resampling done properly
22 lines
354 B
Python
22 lines
354 B
Python
from dataclasses import dataclass
|
|
from typing import Literal
|
|
import pandas as pd
|
|
|
|
Path = str
|
|
FileName = str
|
|
|
|
|
|
@dataclass
|
|
class DataSource:
|
|
path: Path
|
|
file_name: FileName
|
|
freq: Literal["5m", "1h", "1d"]
|
|
|
|
|
|
DataCollection = list[DataSource]
|
|
|
|
ReturnSeries = pd.Series
|
|
ForwardReturnSeries = pd.Series
|
|
XDataFrame = pd.DataFrame
|
|
ySeries = pd.Series
|