title: Why can't I access the excel file in python?
body: <p>I'm trying to use some data that I have in an excel file. However, I'm getting an error saying that it doesn't find the file. I've looked up and the directory and the file name are correct, What am I doing wrong?</p>
  <p>Here is the code:</p>
  <pre><code>import os
  import pandas as pd
  
  print(os.getcwd())
  
  df = pd.read_excel(r'C:/Users/Eder/Desktop/TFG/Data/Interpolation_sample.xlsx',
                     index_col =0,parse_dates=True, sheet_name='sheet3')
  
  </code></pre>
  <p>And the answer from the console:</p>
  <pre><code>runcell(0, 'C:/Users/Eder/untitled0.py')
  C:\Users\Eder\Desktop\TFG\Data
  Traceback (most recent call last):
  
    File &quot;C:\Users\Eder\untitled0.py&quot;, line 14, in &lt;module&gt;
      index_col =0,parse_dates=True, sheet_name='sheet3')
  
    File &quot;E:\Anaconda3\lib\site-packages\pandas\util\_decorators.py&quot;, line 299, in wrapper
      return func(*args, **kwargs)
  
    File &quot;E:\Anaconda3\lib\site-packages\pandas\io\excel\_base.py&quot;, line 336, in read_excel
      io = ExcelFile(io, storage_options=storage_options, engine=engine)
  
    File &quot;E:\Anaconda3\lib\site-packages\pandas\io\excel\_base.py&quot;, line 1072, in __init__
      content=path_or_buffer, storage_options=storage_options
  
    File &quot;E:\Anaconda3\lib\site-packages\pandas\io\excel\_base.py&quot;, line 950, in inspect_excel_format
      content_or_path, &quot;rb&quot;, storage_options=storage_options, is_text=False
  
    File &quot;E:\Anaconda3\lib\site-packages\pandas\io\common.py&quot;, line 651, in get_handle
      handle = open(handle, ioargs.mode)
  
  FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Eder\\Desktop\\TFG\\Data\\Interpolation_sample.xlsx'
  </code></pre>