Files
drift/data_loader/types.py
T

22 lines
354 B
Python
Raw Normal View History

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