I am using Pandas on Mac, to read and write a CSV file, and the weird thing is when using full path, it has error and when using just a file name, it works. I post my code w
You didn't specify python version. On 3.4 you can use pathlib, otherwise use os.path.join() or quoting:
os.path.join()
sourceDf.to_csv(r'~/Downloads/newMaster.csv')
Notice the r. The problem is that /n is newline, which is not allowed in a path.