Feb-22-2021, 06:51 PM
(This post was last modified: Feb-22-2021, 06:51 PM by eddywinch82.)
Hi GerardMoussendo,
Try the following :-
for example, use the following line of Code :-
Try :-
The above lines of Code, saves to a text File, obviously, you can call
the .csv File whatever you like.
Or :-
If they don't work, could you upload the .pcm File, you get the Data from ?
And I could try the Code out myself, and get the answer you need ?
Regards
Eddie Winch
Try the following :-
np.savetxt("data.csv", s)And if the numbers in the array, are separated by commas
for example, use the following line of Code :-
np.savetxt("data.csv", s, delimiter=",")Or if the above lines of Code don't work.
Try :-
numpy.savetxt("data.csv", s)Or :-
numpy.savetxt("data.csv", s, delimiter=",")The delimiter doesn't have to be a comma, it could be something else.
The above lines of Code, saves to a text File, obviously, you can call
the .csv File whatever you like.
Or :-
pd.DataFrame(np_array).to_csv("path/to/file.csv")Or if you don't want a header or index, use :-
to_csv("/path/to/file.csv", header=None, index=None)I hope these lines of Code work for you.
If they don't work, could you upload the .pcm File, you get the Data from ?
And I could try the Code out myself, and get the answer you need ?
Regards
Eddie Winch