Skip to content

Fix: Add encoding parameter to resolve UnicodeDecodeError#3

Open
blu3-bird wants to merge 1 commit intothepycoach:mainfrom
blu3-bird:fix-Unicode-Decode-Error
Open

Fix: Add encoding parameter to resolve UnicodeDecodeError#3
blu3-bird wants to merge 1 commit intothepycoach:mainfrom
blu3-bird:fix-Unicode-Decode-Error

Conversation

@blu3-bird
Copy link

Problem

The notebook fails with UnicodeDecodeError when reading laptop_price.csv because the file contains Latin-1 encoded characters.

Fixes #2

Changes

  • Added encoding='latin1' parameter to pd.read_csv()

Testing

✅ Verified CSV loads successfully with the encoding parameter

Environment

  • Python 3.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UnicodeDecodeError when reading laptop_price.csv

1 participant