dblquad(lambda t,x:np.exp(-x*t)/t**3,0,np.inf, lambda x:1, lambda x:np.inf)
0,np.inf是第二个参数也就是x的求积范围,后两个函数才是t的求积范围,是关于x的函数。
0,np.inf是第二个参数也就是x的求积范围,后两个函数才是t的求积范围,是关于x的函数。
2017-09-20
补充一下,老师没说清楚。这都是《十分钟搞定pandas》的内容,
#使用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文件出现如下错误。
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