We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e553ce commit b488a9cCopy full SHA for b488a9c
pandas/core/groupby.py
@@ -1913,7 +1913,7 @@ def size(self):
1913
"""
1914
ids, _, ngroup = self.group_info
1915
ids = _ensure_platform_int(ids)
1916
- out = np.bincount(ids[ids != -1], minlength=ngroup or None)
+ out = np.bincount(ids[ids != -1], minlength=ngroup)
1917
return Series(out,
1918
index=self.result_index,
1919
dtype='int64')
pandas/io/sas/sas7bdat.py
@@ -596,6 +596,7 @@ def read(self, nrows=None):
596
nrows = self.row_count
597
598
if len(self.column_types) == 0:
599
+ self.close()
600
raise EmptyDataError("No columns to parse from file")
601
602
if self._current_row_in_file_index >= self.row_count:
0 commit comments