The requirement is to generate a csv file where each column is a data of sinusoidal wave of frequency 1 Hz,2 Hz, 3Hz, 4Hz, 5Hz, 6Hz, 7Hz. Thus total 7 columns.
100 wave points for 1Hertz and thus total 100 x 700= 70,000 points.
Can anyone explain how to code for this requirement
CodePudding user response:
You can try this. Here,
- I'm using Numpy to get required values for the frequency.
- Then copy these values to pandas dataframe
- And finally write it to csv file.