GitHub user RayZ0rr edited a comment on the discussion: Handling numpy ndarray or tensor objects with atleast 1 dimension having variable size
Hey @rok , I use `pyarrow.ListType` instead of `pyarrow.ListType[n]` because I don't have to carry around the information of `n` when I'm saving or loading the data. It's not anything complicated at all but maybe one or two lines of code less. Does this have any other bad side effects? > ```python > dims_np = pa.array(shapes[i], pa.list_(pa.int32(), 2))[0].values.to_numpy() > o = data_np.reshape(dims_np) > ``` in creating `dims_np` can I not use `dims_np = shapes[i].values.to_numpy()` instead of creating an `Array` and doing the same for the first element? GitHub link: https://github.com/apache/arrow/discussions/48099#discussioncomment-14958292 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
