Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue noted when reading a csv file #1696

Open
owolabiodufejo123 opened this issue Feb 13, 2025 · 2 comments
Open

issue noted when reading a csv file #1696

owolabiodufejo123 opened this issue Feb 13, 2025 · 2 comments

Comments

@owolabiodufejo123
Copy link

UnicodeDecodeError Traceback (most recent call last)
in <cell line: 0>()
----> 1 df = pd.read_csv('/content/cleaned_test_booking_data.csv')

4 frames
/usr/local/lib/python3.11/dist-packages/pandas/io/parsers/c_parser_wrapper.py in init(self, src, **kwds)
91 # Fail here loudly instead of in cython after reading
92 import_optional_dependency("pyarrow")
---> 93 self._reader = parsers.TextReader(src, **kwds)
94
95 self.unnamed_cols = self._reader.unnamed_cols

parsers.pyx in pandas._libs.parsers.TextReader.cinit()

parsers.pyx in pandas._libs.parsers.TextReader._get_header()

parsers.pyx in pandas._libs.parsers.TextReader._tokenize_rows()

parsers.pyx in pandas._libs.parsers.TextReader._check_tokenize_status()

parsers.pyx in pandas._libs.parsers.raise_parser_error()

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

@owolabiodufejo123
Copy link
Author

Please assist to fix this error

@ZEROTRACEPENTEST
Copy link

ZEROTRACEPENTEST commented Feb 13, 2025 via email

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

No branches or pull requests

2 participants