extract combined exercise module

This commit is contained in:
Dima Gerasimov 2021-01-11 20:31:15 +00:00 committed by karlicoss
parent 6b451336ed
commit 5b501d1562
2 changed files with 23 additions and 10 deletions

17
my/body/exercise/all.py Normal file
View file

@ -0,0 +1,17 @@
'''
Combined exercise data
'''
from ...core.pandas import DataFrameT, check_dataframe
@check_dataframe
def dataframe() -> DataFrameT:
# this should be somehow more flexible...
from ...endomondo import dataframe as EDF
from ...runnerup import dataframe as RDF
import pandas as pd # type: ignore
return pd.concat([
EDF(),
RDF(),
])