Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loading data with HDDM tutorial #71

Open
Gorana7 opened this issue Jan 20, 2021 · 0 comments
Open

loading data with HDDM tutorial #71

Gorana7 opened this issue Jan 20, 2021 · 0 comments

Comments

@Gorana7
Copy link

Gorana7 commented Jan 20, 2021

hello,

I've beeb using a python 2.7 environment using Conda and jupyter notebook. I can't load the data data = hddm.load_csv ('./cavanagh_theta_nn.csv')

I get the error message
IOError Traceback (most recent call last)
in ()
----> 1 data = hddm.load_csv ('./cavanagh_theta_nn.csv')

/Users/gorana/opt/anaconda3/envs/py27/lib/python2.7/site-packages/kabuki/utils.pyc in load_csv(*args, **kwargs)
132 :SeeAlso: save_csv, pandas.read_csv()
133 """
--> 134 return pd.read_csv(*args, **kwargs)
135
136

/Users/gorana/opt/anaconda3/envs/py27/lib/python2.7/site-packages/pandas/io/parsers.pyc in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, skipfooter, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, doublequote, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, delim_whitespace, low_memory, memory_map, float_precision)
700 skip_blank_lines=skip_blank_lines)
701
--> 702 return _read(filepath_or_buffer, kwds)
703
704 parser_f.name = name

/Users/gorana/opt/anaconda3/envs/py27/lib/python2.7/site-packages/pandas/io/parsers.pyc in _read(filepath_or_buffer, kwds)
427
428 # Create the parser.
--> 429 parser = TextFileReader(filepath_or_buffer, **kwds)
430
431 if chunksize or iterator:

/Users/gorana/opt/anaconda3/envs/py27/lib/python2.7/site-packages/pandas/io/parsers.pyc in init(self, f, engine, **kwds)
893 self.options['has_index_names'] = kwds['has_index_names']
894
--> 895 self._make_engine(self.engine)
896
897 def close(self):

/Users/gorana/opt/anaconda3/envs/py27/lib/python2.7/site-packages/pandas/io/parsers.pyc in _make_engine(self, engine)
1120 def _make_engine(self, engine='c'):
1121 if engine == 'c':
-> 1122 self._engine = CParserWrapper(self.f, **self.options)
1123 else:
1124 if engine == 'python':

/Users/gorana/opt/anaconda3/envs/py27/lib/python2.7/site-packages/pandas/io/parsers.pyc in init(self, src, **kwds)
1851 kwds['usecols'] = self.usecols
1852
-> 1853 self._reader = parsers.TextReader(src, **kwds)
1854 self.unnamed_cols = self._reader.unnamed_cols
1855

pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader.cinit()

pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._setup_parser_source()

IOError: [Errno 2] File ./cavanagh_theta_nn.csv does not exist: './cavanagh_theta_nn.csv'

I think the issue is my directory, but I don't know what to change the directory to using os.chdir. I've tried to make my own csv from the GitHub data, but that didn't work. I don't know how to ask python to use the GitHub directory to carry this out either.

I have 0 python/coding experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant