We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5233c4 commit 0b477a6Copy full SHA for 0b477a6
pandas/io/json/_json.py
@@ -625,7 +625,7 @@ def _preprocess_data(self, data):
625
If self.chunksize, we prepare the data for the `__next__` method.
626
Otherwise, we read it into memory for the `read` method.
627
"""
628
- if hasattr(data, "read") and (not self.chunksize or not self.nrows):
+ if hasattr(data, "read") and not (self.chunksize or self.nrows):
629
data = data.read()
630
self.close()
631
if not hasattr(data, "read") and (self.chunksize or self.nrows):
0 commit comments