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 ff090f4 commit 19ee18fCopy full SHA for 19ee18f
pandas/io/common.py
@@ -5,7 +5,7 @@
5
import zipfile
6
from contextlib import contextmanager, closing
7
8
-from pandas.compat import StringIO, string_types
+from pandas.compat import StringIO, string_types, BytesIO
9
from pandas import compat
10
11
@@ -154,7 +154,7 @@ def get_filepath_or_buffer(filepath_or_buffer, encoding=None):
154
b = conn.get_bucket(parsed_url.netloc)
155
k = boto.s3.key.Key(b)
156
k.key = parsed_url.path
157
- filepath_or_buffer = StringIO(k.get_contents_as_string())
+ filepath_or_buffer = BytesIO(k.get_contents_as_string())
158
return filepath_or_buffer, None
159
160
0 commit comments