Не понимаю ЧЯДНТ...
import scipy
data = scipy.genfromtxt("web_traffic.tsv", delimiter="\t")
дает вывод
~/$ ls
scipy.py web_traffic.tsv
~/$ python scipy.py
2.7.10 (default, Oct 14 2015, 16:09:02)
[GCC 5.2.1 20151010]
Traceback (most recent call last):
File "scipy.py", line 5, in <module>
import scipy
File "~/py.scipy.py", line 6, in <module>
data = scipy.genfromtxt("web_traffic.tsv", delimiter="\t")
AttributeError: 'module' object has no attribute 'genfromtxt'
но когда ввожу команды через интерпретатор:
~/py$ python
Python 2.7.10 (default, Oct 14 2015, 16:09:02)
[GCC 5.2.1 20151010] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>> data = scipy.genfromtxt("web_traffic.tsv", delimiter="\t")
>>>