Home>
Assumptions
I have a dataset like this
Unnamed: 0 time test test2
0 0 15: 56: 03: 401674 NaN NaN
1 1 15: 56: 03: 494158 0.000222 0.000000
2 2 15: 56: 03: 594907 0.000000 0.000000
3 3 15: 56: 03: 740971 0.000000 0.000000
4 4 15: 56: 03: 870857 0.000000 0.000000
5 5 15: 56: 04: 003207 0.000000 0.000000
6 6 15: 56: 04: 127827 0.000000 0.000000
7 7 15: 56: 04: 273483 0.000000 0.000000
8 8 15: 56: 04: 402328 0.000349 0.001583
9 9 15: 56: 04: 485437 0.007471 0.009965
10 10 15: 56: 04: 666454 0.024821 0.050704
11 11 15: 56: 04: 817290 0.000920 0.012854
12 12 15: 56: 04: 978378 0.013256 0.105881
13 13 15: 56: 05: 102569 0.002745 0.003255
The above data is timeseries data. I would like to perform frequency analysis by performing FFT oftest
. I want data with the horizontal axis of frequency from the time axis.
How should I perform frequency analysis at this time?
There is an fft library in scipy, but I can't use it well. I saw a lot of sites, but it was difficult and difficult for me.
I want to convert from time axis data to frequency axis data.
If anyone in Python knows how to do it, it would be helpful if you could explain it with specific code.

Answer # 1
Related articles
 python  i don't know the correct code for the frequency table
 python  the reproducibility of the waveform after the fourier transform → inverse fourier transform is hopeless
 python  what are the frequency axis and time axis in scipysignalstft?
 python fourier series the expanded formula is output to the graph
 (python) turtle methods issues at american universities thank you for your understanding
Related questions
 python  i want to generate a matrix from a csv file
 i want to automate excel copy and paste with python
 python  i want to create a new dataframe by repeating the work of extracting the average value of the dataframe
 python  how to keep getting csv data in a loop
 python  [scipyinterpolate] i want to interpolate the time information and coordinate data into data every second
 python  judgment if the value is nan or not a valid url
 python  pandasdataframe i want to match the time columns of two csv and load them
 python  randomly extract data from multiple data frames (no between data frames is the same)
 i want to extract only those that have common items in the dataset [python]
 python  i want to get the very first value of the corresponding condition in the time condition of pandas
Solved.
Because the first numerical value was NaN, it seems that it was useless to treat the initial input properly as a numerical value.
Programming is messed up in such an insignificant situation, so it was easy, but I was glad to solve it myself.
I'm glad that you understand the Fourier transform and the code.
Leave it to be useful when someone gets stuck again!