pyworkout-toolkit icon indicating copy to clipboard operation
pyworkout-toolkit copied to clipboard

Error on reading many TCX using DASK

Open albertoivo opened this issue 4 years ago • 1 comments

I'm doing exactly like the example on README:

import dask.dataframe as dd
from dask import delayed

tcx1 = delayed(tcxtools.TCXPandas('workout_1.tcx').parse()) # Delay these calculations
tcx2 = delayed(tcxtools.TCXPandas('workout_2.tcx').parse()) # Use as many as needed

total = dd.from_delayed([tc1, tc2]) # However many files you need
total.visualize() # Visualize the task graph
total.compute() # Compute it
# This returns a dataframe with all the files

PS: tcx1 and tcx2 are wrong in this example on line total = dd.from_delayed([tc1, tc2]) # However many files you need

I'm getting the error:

TypeError: Series.name must be a hashable type

Anybody can help what should I do here to fix this error?

Thanks in advance.

albertoivo avatar Jul 28 '20 19:07 albertoivo

Sorry about the delay. I need to track down and see where the error is coming from. A lot of dask has changed so my examples will need to change too.

triskadecaepyon avatar Apr 30 '21 14:04 triskadecaepyon