I want to convert scalar values from record batch to hex string, but the method I use is very inefficient.Here is the operation:
data = [ pyarrow.arra