---------------------------------------------------------------------------
IOError Traceback (most recent call last)
<ipython-input-8-3e367e868db4> in <module>()
2 dataf = pd.read_csv("/Users/Gabriel/Dropbox/ACI/TXN_OHE.csv")
3
----> 4 data = pd.read_csv(dataf)
5 print data.dtypes
/Library/Frameworks/Python.framework/Versions/2.7/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, 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, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, skipfooter, skip_footer, doublequote, delim_whitespace, as_recarray, compact_ints, use_unsigned, low_memory, buffer_lines, memory_map, float_precision)
643 skip_blank_lines=skip_blank_lines)
644
--> 645 return _read(filepath_or_buffer, kwds)
646
647 parser_f.__name__ = name
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/io/parsers.pyc in _read(filepath_or_buffer, kwds)
386
387 # Create the parser.
--> 388 parser = TextFileReader(filepath_or_buffer, **kwds)
389
390 if (nrows is not None) and (chunksize is not None):
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/io/parsers.pyc in __init__(self, f, engine, **kwds)
727 self.options['has_index_names'] = kwds['has_index_names']
728
--> 729 self._make_engine(self.engine)
730
731 def close(self):
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/io/parsers.pyc in _make_engine(self, engine)
920 def _make_engine(self, engine='c'):
921 if engine == 'c':
--> 922 self._engine = CParserWrapper(self.f, **self.options)
923 else:
924 if engine == 'python':
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/io/parsers.pyc in __init__(self, src, **kwds)
1387 kwds['allow_leading_cols'] = self.index_col is not False
1388
-> 1389 self._reader = _parser.TextReader(src, **kwds)
1390
1391 # XXX
pandas/parser.pyx in pandas.parser.TextReader.__cinit__ (pandas/parser.c:4019)()
pandas/parser.pyx in pandas.parser.TextReader._setup_parser_source (pandas/parser.c:8144)()
IOError: Expected file path name or file-like object, got <class 'pandas.core.frame.DataFrame'> type