my.body.exercise: more consistent merging for cross trainer data

This commit is contained in:
Dima Gerasimov 2020-09-14 21:09:28 +01:00 committed by karlicoss
parent 1ca2d116ec
commit afce09d1d4
2 changed files with 27 additions and 24 deletions

View file

@ -58,7 +58,10 @@ def dataframe(defensive=True):
d = {'error': f'{e} {w}'}
yield d
import pandas as pd # type: ignore
return pd.DataFrame(it())
df = pd.DataFrame(it())
# pandas guesses integer, which is pointless for this field (might get coerced to float too)
df['id'] = df['id'].astype(str)
return df