Based on this github issue I had to make one modification - https://github.com/scipy/scipy/issues/13812as shown below. I had to remove the zero frequencysignal.lombscargle(minutes,df1.to_numpy().ravel(),freq[1:])
and the code works just fine now. The interpretation task awaits me now .For the record here is the code -times = df.view(np.int64)/6E10
df1 = (data[['Pressure_hPa']])
# I also added a 2 to the angular frequency valuefreq = np.linspace(0, 2*np.pi/300.0,8928//2)