title: Cant read .csv file. EmptyDataError: No columns to parse from file
body: <p>I am using a MAC laptop to read my .csv file but this error shows up:</p>
  <blockquote>
  <p>EmptyDataError: No columns to parse from file.</p>
  </blockquote>
  <p>Here is a look at my data file:
  <a href="https://i.stack.imgur.com/QKQri.png" rel="nofollow noreferrer">preview of the .csv file</a></p>
  <p>I even checked whether the filepath of the file is correct and it turned out to be fine.</p>
  <pre><code>path = 'Users\syedwaqar\Huma-IBM-ML\healthcare-dataset-stroke-data.csv' 
  con = sq3.Connection(path)
  </code></pre>
  <p>I tried to define the path like this but it always gave the error:</p>
  <pre><code>path = 'Users/syedwaqar/Huma-IBM-ML/healthcare-dataset-stroke-data.csv'
  con = sq3.Connection(path)
  </code></pre>
  <blockquote>
  <p>OperationalError: unable to open database file</p>
  </blockquote>
  <p>After this: <a href="https://i.stack.imgur.com/mNEpQ.png" rel="nofollow noreferrer">I tried to check if the filepath is correct, it shows that its correct. I wonder what the problem is. </a></p>
  <p>Here is the main error after writing this line of code:</p>
  <pre><code>data = pd.read_csv(path)
  </code></pre>
  <blockquote>
  <p>--------------------------------------------------------------------------- EmptyDataError                            Traceback (most recent call
  last)  in 
  ----&gt; 1 data = pd.read_csv(path, header=None)</p>
  <p>~/opt/anaconda3/lib/python3.8/site-packages/pandas/io/parsers.py in
  read_csv(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, cache_dates, iterator, chunksize, compression,
  thousands, decimal, lineterminator, quotechar, quoting, doublequote,
  escapechar, comment, encoding, dialect, error_bad_lines,
  warn_bad_lines, delim_whitespace, low_memory, memory_map,
  float_precision)
  684     )
  685
  --&gt; 686     return _read(filepath_or_buffer, kwds)
  687
  688</p>
  <p>~/opt/anaconda3/lib/python3.8/site-packages/pandas/io/parsers.py in
  _read(filepath_or_buffer, kwds)
  450
  451     # Create the parser.
  --&gt; 452     parser = TextFileReader(fp_or_buf, **kwds)
  453
  454     if chunksize or iterator:</p>
  <p>~/opt/anaconda3/lib/python3.8/site-packages/pandas/io/parsers.py in
  <strong>init</strong>(self, f, engine, **kwds)
  944             self.options[&quot;has_index_names&quot;] = kwds[&quot;has_index_names&quot;]
  945
  --&gt; 946         self._make_engine(self.engine)
  947
  948     def close(self):</p>
  <p>~/opt/anaconda3/lib/python3.8/site-packages/pandas/io/parsers.py in
  _make_engine(self, engine)    1176     def _make_engine(self, engine=&quot;c&quot;):    1177         if engine == &quot;c&quot;:
  -&gt; 1178             self._engine = CParserWrapper(self.f, **self.options)    1179         else:    1180             if engine == &quot;python&quot;:</p>
  <p>~/opt/anaconda3/lib/python3.8/site-packages/pandas/io/parsers.py in
  <strong>init</strong>(self, src, **kwds)    2006         kwds[&quot;usecols&quot;] = self.usecols    2007
  -&gt; 2008         self._reader = parsers.TextReader(src, **kwds)    2009         self.unnamed_cols = self._reader.unnamed_cols    2010</p>
  <p>pandas/_libs/parsers.pyx in
  pandas._libs.parsers.TextReader.<strong>cinit</strong>()</p>
  <p>EmptyDataError: No columns to parse from file</p>
  </blockquote>
  <p>Kindly, help me fix this. I am unable to understand the issue.</p>