Hi, i am reading data from an excel using pandas in the code. How should i write the path for the excel such that when i send the "one dir" file to another user it doesn't give the error "no such file or directory".
Hi!
I think you just have to make sure when you open the file in your app that the file is there. So you should send a copy to other user so the original stays there or you delete this one and create a new one with the same name.
I think if the file is not present in the directory when you try to open it it will trigger the exception, but otherwise it shouldn't.
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, i am reading data from an excel using pandas in the code. How should i write the path for the excel such that when i send the "one dir" file to another user it doesn't give the error "no such file or directory".
Hi!
I think you just have to make sure when you open the file in your app that the file is there. So you should send a copy to other user so the original stays there or you delete this one and create a new one with the same name.
I think if the file is not present in the directory when you try to open it it will trigger the exception, but otherwise it shouldn't.