some testing, some pandas to polars in tasks.py
This commit is contained in:
@@ -2705,7 +2705,7 @@ def create_c2_stroke_data_db(
|
||||
else:
|
||||
power = 0
|
||||
|
||||
df = pd.DataFrame({
|
||||
df = pl.DataFrame({
|
||||
'TimeStamp (sec)': unixtime,
|
||||
' Horizontal (meters)': d,
|
||||
' Cadence (stokes/min)': spm,
|
||||
@@ -2726,9 +2726,10 @@ def create_c2_stroke_data_db(
|
||||
'cum_dist': d
|
||||
})
|
||||
|
||||
df[' ElapsedTime (sec)'] = df['TimeStamp (sec)']
|
||||
df = df.with_columns((pl.col("TimeStamp (sec)")).alias(" ElapsedTime (sec)"))
|
||||
|
||||
_ = df.to_csv(csvfilename, index_label='index', compression='gzip')
|
||||
row = rrdata_pl(df=df)
|
||||
row.writecsv(csvfilename, compression=True)
|
||||
|
||||
data = dataplep(df, id=workoutid, bands=False, debug=debug)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user