Relative Content

Tag Archive for pythonnumpy

write and read binary data in python

I am trying to write an array of data a binary file with the intention of later accessing said file to locate data. I looked around online finding multiple methods to save data from using df.to_pickle, struct.pack, np.to_bytes(). Now comes the part of reading it. I found other posts requesting reading but so far none have aided in retrieving the data. I am under the impression it might have to do with how I compress the data.