Search code examples
pythonvisualizationfft

How to visualize values ​in array list as fft in Python


I have array values ​​that I pulled from the dataset and I want to make visualizations by applying fft to them

MyCode is:

data = df["Value"]
data
smpl = []
for i in data:
  i = i.split(",")
  smpl.append(i)
smpl

and smpl array like

[['2375.000', '2437.000', '2375.000', '2250.000', '2312.000', '2312.000', '2375.000', '2375.000', '2375.000', '2375.000', '2312.000', '2375.000', '2375.000', '2375.000', '2437.000', '2437.000', '2312.000', '2312.000', '2312.000', '2437.000', '2375.000', '2375.000', '2437.000', '2437.000', '2437.000', '2312.000', '2375.000', '2250.000', '2250.000', ....

How can i do it ?


Solution

  • Kindly refer to the Scipy fft() manual. It has the instructions for exactly what you're trying to do. Here's the link to the manual:

    https://docs.scipy.org/doc/scipy/tutorial/fft.html