Module ifra.loader
Expand source code
import pandas as pd
from transparentpath import TransparentPath
def load_y(path: TransparentPath, **kwargs) -> pd.Series:
y = path.read(**kwargs).squeeze()
if isinstance(y, pd.Series):
return y
else:
return pd.Series([y])
Functions
def load_y(path: transparentpath.gcsutils.transparentpath.TransparentPath, **kwargs) ‑> pandas.core.series.Series
-
Expand source code
def load_y(path: TransparentPath, **kwargs) -> pd.Series: y = path.read(**kwargs).squeeze() if isinstance(y, pd.Series): return y else: return pd.Series([y])