python - retrieving data from a numpy array and storing in a dataframe -


i have .npy file , store data contains in variable in order convert dataframe.

i tried using following:

data=np.array(numpy.load('jason1data_full_east_west.npy')) 

however when test shapes new 1 not match original data.

even question not clear. can try following:

path = .../jason1data_full_east_west.npy data = np.load(path) 

and need convert dataframe following:

pd.dataframe({'data':data.tolist()}) 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -