---------------------------------------------------------------------------
OSError Traceback (most recent call last)
<ipython-input-10-535e242131cb> in <module>
1 # problem 3
----> 2 y = np.loadtxt("results.txt", delimiter=",", skiprows=1)
3 x = np.arange(1, 22)
4
5 fig = plt.figure(figsize=(7,7))
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numpy/lib/npyio.py in loadtxt(fname, dtype, comments, delimiter, converters, skiprows, usecols, unpack, ndmin, encoding, max_rows, like)
1063 fname = os_fspath(fname)
1064 if _is_string_like(fname):
-> 1065 fh = np.lib._datasource.open(fname, 'rt', encoding=encoding)
1066 fencoding = getattr(fh, 'encoding', 'latin1')
1067 fh = iter(fh)
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numpy/lib/_datasource.py in open(path, mode, destpath, encoding, newline)
192
193 ds = DataSource(destpath)
--> 194 return ds.open(path, mode, encoding=encoding, newline=newline)
195
196
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numpy/lib/_datasource.py in open(self, path, mode, encoding, newline)
529 encoding=encoding, newline=newline)
530 else:
--> 531 raise IOError("%s not found." % path)
532
533
OSError: results.txt not found.