#๐ Can't find the csv file
39 messages ยท Page 1 of 1 (latest)
@stoic turret
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Do you have an error message?
no
Where did you last see your csv file?
im not sure what you mean
Maybe add some context? Your original post got deleted
ok i'll make a new post
you can keep using this one.
To make a new post, you have to close this one anyway, and it will stay unlocked as long as it stays active
idk how to paste my code onto discord
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
!paste
!code
use the paste service if your code is long
And it keeps saying "CSV file ... not found."?
yeah
right click on the file on your desktop and click "Copy as path"
file_path = 'C:/Users/nickt/OneDrive/Desktop/python/kaiser.csv'
file_path = 'kaiser.csv'
you probably want the first one, and to change the forward slashes to back slashes
you'd also want to put an r in front of the open quote-- r' '
he's using forward slash, so it should be fine
i did what you said and now im getting this error
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
it means you're using \User without a r-string
Do this
it still says csvl file ... not found
Are you setting file_path twice still?
yeah, should i get rid of one
Pop quiz. What is the output of this script? ```py
name = "John Cena"
name = "Dwayne Johnson"
print(name)
i see
(I use wrestler names to be relevant with the kids)
alright thank you
Dave Bautista
I'm locking in my answer
Kids from the 1990s?
The Rock retired in like 2004-2005
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.