We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2e91f8 commit a900ef9Copy full SHA for a900ef9
pandas/io/common.py
@@ -877,8 +877,7 @@ def read(self, size: int = -1) -> str | bytes:
877
if self.decode:
878
# memory mapping is applied before compression. Encoding should
879
# be applied to the de-compressed data.
880
- final: bool = len(content) == 0
881
- return self.decoder.decode(content, final=final)
+ return content.decode(self.encoding, errors=self.errors)
882
return content
883
884
def __next__(self) -> str:
0 commit comments