Feb-20-2021, 01:34 PM
I have a set of data with one row and several columns. I want to split it into multiple rows and 10 columns (kind of multiple dimensional). Here an example of my data( i have 1583717 samples in total):
VALUES: [ 0 0 0 ... 5740 -11760 8510]
Below is my code:
VALUES: [ 0 0 0 ... 5740 -11760 8510]
Below is my code:
data = np.memmap("F:\data.pcm", dtype='h', mode='r')
print("VALUES:", data)
pylab.plot(data)
pylab.show()
np.save("data_signal.npy", data)
l = np.load("data_signal.npy")
print(l)
