fix
This commit is contained in:
@@ -1620,20 +1620,23 @@ def read_data(columns, ids=[], doclean=True, workstrokesonly=True, debug=False,
|
|||||||
else:
|
else:
|
||||||
intcolumns.append(c)
|
intcolumns.append(c)
|
||||||
|
|
||||||
data = [
|
try:
|
||||||
df.with_columns(
|
data = [
|
||||||
cs.float().cast(pl.Float64)
|
df.with_columns(
|
||||||
).with_columns(
|
cs.float().cast(pl.Float64)
|
||||||
cs.integer().cast(pl.Int64)
|
).with_columns(
|
||||||
).with_columns(
|
cs.integer().cast(pl.Int64)
|
||||||
cs.by_name(intcolumns).cast(pl.Int64)
|
).with_columns(
|
||||||
).with_columns(
|
cs.by_name(intcolumns).cast(pl.Int64)
|
||||||
cs.by_name(floatcolumns).cast(pl.Float64)
|
).with_columns(
|
||||||
).with_columns(
|
cs.by_name(floatcolumns).cast(pl.Float64)
|
||||||
cs.by_name(stringcolumns).cast(pl.String)
|
).with_columns(
|
||||||
)
|
cs.by_name(stringcolumns).cast(pl.String)
|
||||||
for df in data
|
)
|
||||||
]
|
for df in data
|
||||||
|
]
|
||||||
|
except ComputeError:
|
||||||
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
datadf = pl.concat(data)
|
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