0

For example, what is the difference between

import pandas as pd
dtf = pd.read_csv("c:\\pywork\\Employee.csv")
print(dtf)

and

import pandas as pd
dtf = pd.read_csv("c:\pywork\Employee.csv")
print(dtf)

Basically in both the cases, the only difference is the backslash, and from experience i have seen both function the same, but also seen the single backslash format give error or sometimes the double backslash format give errors. So what is the difference?

cheemse
  • 41
  • 6
  • See [Why do backslashes appear twice?](https://stackoverflow.com/questions/24085680/why-do-backslashes-appear-twice) – Jacob Sep 24 '20 at 15:13
  • You can also check out Python 3 Quick Tip: "The easy way to deal with file paths on Windows, Mac and Linux " at https://medium.com/@ageitgey/python-3-quick-tip-the-easy-way-to-deal-with-file-paths-on-windows-mac-and-linux-11a072b58d5f – itprorh66 Sep 24 '20 at 20:17

0 Answers0