File size: 330 Bytes
6701016 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import numpy as np
import pandas as pd
file_path = 'dataset.npy'
data_read = np.load(file_path)[..., 0:1]
# test = data_read[:, :, 0]
# print(test[test==0].shape)
# np.savez('chengdu_didi.npz', data=data_read)
datas = np.load('chengdu_didi.npz')
print(datas.files)
print(datas['data'])
print(datas['data'].shape)
|