Home>

Read csv data
Please write your question in detail here.
(Example) I am making a ●● system with PHP (CakePHP).
■■ The following error message occurred while implementing the function.

FileNotFoundError: [Errno 2] File b'customer_master1.csv' does not exist: b'customer_master1.csv'

Corresponding source code

Language name: Python

What I tried

File name confirmation/code confirmation

Supplementary information (FW/tool version, etc.)

I am aiming to be a data scientist.

  • Answer # 1



    I'm also a high school student trying to become a data scientist.
    Probably the files are not in the same directory.
    The file will not be recognized unless it is in the same directory as the program file created above.
    Therefore, it is recommended to specify the path as shown below.
    df2 = pd.read_csv ("excel/suji2.csv")
    * A path is like a file path. It is recognized by separating with /.
    If you have any questions, please ask

  • Answer # 2




    I'm also a high school student trying to become a data scientist.
    The file will not be recognized unless it is in the same directory as the program file created above.
    Therefore, it is recommended to specify the path as shown below.

    * A path is like a file path. It is recognized by separating with /.

  • Answer # 3




    I'm also a high school student trying to become a data scientist.
    Probably the files are not in the same directory.
    The file will not be recognized unless it is in the same directory as the program file created above.
    Therefore, it is recommended to specify the path as shown below.

    * A path is like a file path. It is recognized by separating with /.
    If you have any questions, please ask