Im trying to read in some data from the second sheet of a excel spreadsheet. skipping the first 18 rows and only columns C to F. This is what I have tried
import pandas as pd
new_file=pd.read_excel("C:\Users\denis\Documents\Dissertation\Raw Data\CO\1213Q1.xls",sheetname=1, skiprows=18, parse_cols=[2,5])
when I run this I get the following error
runfile('C:/Users/denis/Documents/Dissertation/Code/test.py', wdir='C:/Users/denis/Documents/Dissertation/Code')
File "C:/Users/denis/Documents/Dissertation/Code/test.py", line 9
new_file=pd.read_excel("C:\Users\denis\Documents\Dissertation\Raw Data\CO\1213Q1.xls",sheetname=1, skiprows=18, parse_cols=[2,5])
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
does anyone know what could be causing this?