diff --git a/src/awkward/_connect/rdataframe/from_rdataframe.py b/src/awkward/_connect/rdataframe/from_rdataframe.py index 80450eb519..1eb2409d96 100644 --- a/src/awkward/_connect/rdataframe/from_rdataframe.py +++ b/src/awkward/_connect/rdataframe/from_rdataframe.py @@ -71,7 +71,7 @@ def form_dtype(form): def empty_buffers(cpp_buffers_self, names_nbytes): buffers = {} for item in names_nbytes: - buffers[item.first] = numpy.empty(item.second) + buffers[item.first] = numpy.empty(item.second, dtype=np.uint8) cpp_buffers_self.append( item.first, buffers[item.first].ctypes.data_as(ctypes.POINTER(ctypes.c_ubyte)),