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 time-series 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 - when i do an inverse fourier transform after fourier transforming a graph, i want to return to the original graph, but
- python - i want to output the diameter of the hough transform
- python - why is the intensity of the low frequency part of the white noise spectrogram abnormally strong?
- multiple python methods
- excel - fft → frequency spectrum display in python this is my first question thank you
- how to find% (frequency) of those extracted from multiple texts with python
- python - opinion of param1 of hough transform
- 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 : How to replace NaN values of a column in a dataframe with values from another dataframe by key?
- python : How to remove data gaps in the set date
- python : New dataframe from old
- python : Change the function and create a list of text data and responses from the csv dataframe
- python : Optimizing the calculator code
- python : Need help finding the index on the Series object s
- python : Remove columns when condition is met
- Python matrix multiplication
- python : Filtering disappears after groupby
- python : How to read Excel spreadsheets with a compound title?
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!