Skip to content

Commit 64d9203

Browse files
committed
Call seek if it is available
1 parent d462ea8 commit 64d9203

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas_streaming/df/dataframe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ def fct2(args=args, chunksize=chunksize, kw=kwargs.copy()):
288288
**kwargs_create)
289289

290290
def fct3(st=st, args=args, chunksize=chunksize, kw=kwargs.copy()):
291-
st.seek(0)
291+
if hasattr(st, 'seek'):
292+
st.seek(0)
292293
for r in pandas.read_json(
293294
st, *args, chunksize=chunksize, nrows=chunksize,
294295
lines=True, **kw):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy