我找不到任何关于scipy.fft
实际上是numpy.fft.fftpack.fft
的链接这一事实的官方文档。这是一个显示链接的iPython会话:
In [1]: import scipy
In [2]: import numpy
In [3]: scipy.__version__
Out[3]: '0.19.0'
In [4]: numpy.__version__
Out[4]: '1.12.1'
In [5]: scipy.fft
Out[5]: <function numpy.fft.fftpack.fft>
我能找到scipy.fft
子模块的唯一提及是this discussion on numpy-discussion和this discussion on SciPy's Github,这两个似乎都暗示了当时没有这样的子模块。< / p>
答案 0 :(得分:1)
import csv
class csvLibrary(object):
def read_csv_file(self, filename):
'''This creates a keyword named "Read CSV File"
This keyword takes one argument, which is a path to a .csv file. It
returns a list of rows, with each row being a list of the data in
each column.
'''
data = []
with open(filename, 'rb') as csvfile:
reader = csv.reader(csvfile)
next(reader,None)
for row in reader:
for i in row:
data.append(i)
return data
文件包含:
scipy.__init__.py
答案 1 :(得分:1)
是的,它是documented:
从Scipy导入函数的指南
scipy名称空间本身只包含从numpy导入的函数。这些函数仍然存在以实现向后兼容,但应该直接从numpy导入。
[...]