# Model SED
df2=pd.read_csv('fm10t5750g05k2odfnew.dat', skiprows =1 , delim_whitespace = True )
df2.rename({'VTURB=2':'wavelength','TITLE':'1','[-1.0]':'2', 'L/H=1.25' :'freq', 'NOVER' :'Hnu', 'NEW':'6', 'ODF':'7'}, axis =1 , inplace = True )
df2.drop ([ '1'] , axis =1 , inplace = True )
print (df2.columns)
df2.drop ( df2.tail (1).index, inplace = True )
df2.drop ( df2.head (30).index , inplace = True )
wave = np.array(df2['wavelength']) # nm
flux_lamb_new= np.array(df2['Hnu'])
modfreq = np.array(df2['freq'])
wave_SI= np.array(wave)
modfluxSI = modfreq*flux_lamb_new*4*np.pi
TypeError Traceback (most recent call last)
Input In [279], in <cell line: 15>()
13 modfreq = np.array(df2['freq'])
14 wave_SI= np.array(wave)
---> 15 modfluxSI = modfreq*flux_lamb_new*4*np.pi
TypeError: can't multiply sequence by non-int of type 'float'
Since i'm new to python i am not sure how to proceed. if someone could help solve this i'd be grateful. Thanks!