saving . . . saved Loading data error has been deleted. Loading data error has been hidden .
Loading data error
Title
Question
L=np.loadtxt("football.txt",usecols=(1,2),delimiter=',')
Traceback (most recent call last):

  File "<ipython-input-2-8d4e42947062>", line 1, in <module>
    L=np.loadtxt("football.txt",usecols=(1,2),delimiter=',')

  File "C:\Users\91808\anaconda3\lib\site-packages\numpy\lib\npyio.py", line 981, in loadtxt
    fh = np.lib._datasource.open(fname, 'rt', encoding=encoding)

  File "C:\Users\91808\anaconda3\lib\site-packages\numpy\lib\_datasource.py", line 269, in open
    return ds.open(path, mode, encoding=encoding, newline=newline)

  File "C:\Users\91808\anaconda3\lib\site-packages\numpy\lib\_datasource.py", line 623, in open
    raise IOError("%s not found." % path)

OSError: football.txt not found.

present working directory 'C:\\Users\\91808'
using spyder(python 3.8)

Python-3.4.3 Statistics 11-12 min 0-10 sec 21-09-20, 7:47 p.m. karandeprra19et@student.mes.ac.in

Answers:

Please not the error is that the txt file was not found, in your loadtxt command please provide the full path of the football.txt file, if this path is not provided the system looks for the file in the current directory from where the interpreter is running and fails to find the file. 
24-09-20, 11:58 a.m. ankitrj.iitb


Log-in to answer to this question.