Skip to content

Can't read data/sales_data.csv using panda library #49

@ansonantony

Description

@ansonantony

When we run the code we encounter the following error


FileNotFoundError Traceback (most recent call last)

in <cell line: 1>()
----> 1 sales = pd.read_csv(
2 'data/sales_data.csv',
3 parse_dates=['Date'])

6 frames

/usr/local/lib/python3.10/dist-packages/pandas/io/common.py in get_handle(path_or_buf, mode, encoding, compression, memory_map, is_text, errors, storage_options)
854 if ioargs.encoding and "b" not in ioargs.mode:
855 # Encoding
--> 856 handle = open(
857 handle,
858 ioargs.mode,

FileNotFoundError: [Errno 2] No such file or directory: 'data/sales_data.csv'
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions