You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Convert the list of offsets to a NumPy array of signed 64-bit integers (note: Arrow allows the offsets array to be either `int32` or `int64`; here, we default to the latter)
525
+
buf=np.asarray(offsets, dtype="int64")
526
+
527
+
# Convert the offsets to a Pandas "buffer" using the NumPy array as the backing store
528
+
buffer=_PandasBuffer(buf)
529
+
530
+
# Assemble the buffer dtype info
531
+
bdtype=buf.dtype;
532
+
dtype= (_k.INT, bdtype.itemsize*8, bdtype.str, "=") # note: currently only support native endianness
526
533
else:
527
534
raiseRuntimeError("This column has a fixed-length dtype so does not have an offsets buffer")
0 commit comments