use r before the string to process it as a raw string (i.e. no string formatting).
e.g.
infilename = r'C:/blah/blah/blah.csv'
More details here:
https://docs.python.org/3.6/reference/lexical_analysis.html#string-and-bytes-literals
More Related Contents:
- Python for in range()
- Does Python have a ternary conditional operator?
- Best way to return multiple values from a function? [closed]
- how to play wav file in python?
- Understanding repr( ) function in Python
- What are type hints in Python 3.5?
- What is the perfect counterpart in Python for “while not EOF”
- find_element_by_* commands are deprecated in selenium
- How to change python version in anaconda spyder
- How do I split a list into equally-sized chunks?
- How can I make a dictionary from separate lists of keys and values?
- How can I represent an infinite number in Python?
- Python ungzipping stream of bytes?
- How to execute a GROUP BY … COUNT or SUM in Django ORM?
- Logging to two files with different settings
- Symlinks on windows?
- Why am I getting the error “connection refused” in Python? (Sockets)
- TensorFlow operator overloading
- When to use Serializer’s create() and ModelViewset’s perform_create()
- How to upsert pandas DataFrame to Microsoft SQL Server table?
- “Permission Denied” trying to run Python on Windows 10
- Are there any reasons not to use an OrderedDict?
- Is a variable swap guaranteed to be atomic in python?
- multidimensional confidence intervals [closed]
- pycharm convert tabs to spaces automatically
- Can’t concat bytes to str
- How to close the Python turtle window after it does its code?
- Bundling Data files with PyInstaller 2.1 and MEIPASS error –onefile
- The ‘pip==7.1.0’ distribution was not found and is required by the application
- start index at 1 for Pandas DataFrame