fix
This commit is contained in:
@@ -1619,21 +1619,24 @@ def read_data(columns, ids=[], doclean=True, workstrokesonly=True, debug=False,
|
||||
stringcolumns.append(c)
|
||||
else:
|
||||
intcolumns.append(c)
|
||||
|
||||
data = [
|
||||
df.with_columns(
|
||||
cs.float().cast(pl.Float64)
|
||||
).with_columns(
|
||||
cs.integer().cast(pl.Int64)
|
||||
).with_columns(
|
||||
cs.by_name(intcolumns).cast(pl.Int64)
|
||||
).with_columns(
|
||||
cs.by_name(floatcolumns).cast(pl.Float64)
|
||||
).with_columns(
|
||||
cs.by_name(stringcolumns).cast(pl.String)
|
||||
)
|
||||
for df in data
|
||||
]
|
||||
|
||||
try:
|
||||
data = [
|
||||
df.with_columns(
|
||||
cs.float().cast(pl.Float64)
|
||||
).with_columns(
|
||||
cs.integer().cast(pl.Int64)
|
||||
).with_columns(
|
||||
cs.by_name(intcolumns).cast(pl.Int64)
|
||||
).with_columns(
|
||||
cs.by_name(floatcolumns).cast(pl.Float64)
|
||||
).with_columns(
|
||||
cs.by_name(stringcolumns).cast(pl.String)
|
||||
)
|
||||
for df in data
|
||||
]
|
||||
except ComputeError:
|
||||
pass
|
||||
|
||||
try:
|
||||
datadf = pl.concat(data)
|
||||
|
||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user