dblquad(lambda t,x:np.exp(-x*t)/t**3,0,np.inf, lambda x:1, lambda x:np.inf)
0,np.inf是第二個參數(shù)也就是x的求積范圍,后兩個函數(shù)才是t的求積范圍,是關于x的函數(shù)。
0,np.inf是第二個參數(shù)也就是x的求積范圍,后兩個函數(shù)才是t的求積范圍,是關于x的函數(shù)。
2017-09-20
補充一下,老師沒說清楚。這都是《十分鐘搞定pandas》的內(nèi)容,
#使用isin()方法來過濾:
df2 = df.copy()
df2['E'] = ['one','one','two','three','four','three']
print df2
print df2[df2['E'].isin(['two','four'])]
#使用isin()方法來過濾:
df2 = df.copy()
df2['E'] = ['one','one','two','three','four','three']
print df2
print df2[df2['E'].isin(['two','four'])]
2017-09-17
讀excel文件出現(xiàn)如下錯誤。
File "/home/pengwei/anaconda2/lib/python2.7/site-packages/xlrd/__init__.py", line 428, in open_workbook
raise XLRDError('Openoffice.org ODS file; not supported')
xlrd.biffh.XLRDError: Openoffice.org ODS file; not supported
File "/home/pengwei/anaconda2/lib/python2.7/site-packages/xlrd/__init__.py", line 428, in open_workbook
raise XLRDError('Openoffice.org ODS file; not supported')
xlrd.biffh.XLRDError: Openoffice.org ODS file; not supported
2017-09-12