lets say i have a datasetset of seven columns and i just take one column (xyz_magnitude) of size 1,415,684 rows and i feed it to calculate the spectrogram of that column, i expected to get the spectrogram of one column with the same size as the input (xyz_magnitude) but it gets me one column with more than 1,415,684. it prints actually 7,087,647 rows
why this huge number of spectrogram rows, and why it is not the same number of rows as the input
this my code
dataset = np.loadtxt("dataset.txt", delimiter=",")
magnitude = dataset[:,5]
ls, freqs, bins, im = plt.specgram(magnitude, NFFT=1000, Fs=1.0, noverlap=900)
merged = list(itertools.chain(*ls))