I convert an arrow object with « zero copy », to panda, but the result object is not aligned.
#create a pyarrow.table.Table from parquet file
pq_file=pq.ParquetFile(parquet_file_name)
arrow_table=pq_file.read()
#convert pyarrow.table.Table to panda with zero copy
df=arrow_table.to_pandas(zero_copy_only=True)
#check if the numpy array is aligned :
print("alignment: {}".format(df.as_matrix().__array_interface__['data'[0]%64))
Code return: alignment: 16
Conclusion: The NumPy array is not aligned.As I convert pyarrow.table.Table to panda with “zero copy”, I conclude that the pyarrow.table.Table itself is not aligned. Where am I wrong?