how to export data to unix system location using python
<p>I am trying to write the file to my company's project folder which is unix system and the location is /department/projects/data/. So I used the following code</p>

<p>df.to_csv("/department/projects/data/Test.txt", sep='\t', header = 0)</p>

<p>The error message shows it cannot find the locations. how to specify the file location in Unix using python?</p>

<p>I have find the solution. It might because I am using Spyder from anaconda. As long as I use "\" instead of "\", python can recognize the location.</p>

python unix