my.body.exercise: more consistent merging for cross trainer data
This commit is contained in:
parent
1ca2d116ec
commit
afce09d1d4
2 changed files with 27 additions and 24 deletions
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue