mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-20 06:18:08 +00:00
feat(Data): resample exogenous/other datasource when their frequency is different (#234)
* feat(Data): resample exogenous/other datasource when their frequency is different * fix(Linter): ran * fix(Data): resampling done properly
This commit is contained in:
+11
-1
@@ -1,8 +1,18 @@
|
||||
from dataclasses import dataclass
|
||||
from typing import Literal
|
||||
import pandas as pd
|
||||
|
||||
Path = str
|
||||
FileName = str
|
||||
DataSource = tuple[Path, FileName]
|
||||
|
||||
|
||||
@dataclass
|
||||
class DataSource:
|
||||
path: Path
|
||||
file_name: FileName
|
||||
freq: Literal["5m", "1h", "1d"]
|
||||
|
||||
|
||||
DataCollection = list[DataSource]
|
||||
|
||||
ReturnSeries = pd.Series
|
||||
|
||||
Reference in New Issue
Block a user