Private
Public Access
1
0

some testing, some pandas to polars in tasks.py

This commit is contained in:
2024-04-17 13:35:02 +02:00
parent 4e05799e35
commit af62267996
9 changed files with 35 additions and 507 deletions

View File

@@ -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)