mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
fixing zero length partitions (#2237)
fixing bugs to fully handle zero len parts resolve comments renaming imports Add getattr to groupby testing
This commit is contained in:
parent
800f7cc77d
commit
aa5daa1b82
1 changed files with 19 additions and 0 deletions
|
@ -62,6 +62,25 @@ class DataFrameGroupBy(object):
|
|||
else:
|
||||
self._grouped_partitions = [df._row_partitions]
|
||||
|
||||
def __getattr__(self, key):
|
||||
"""Afer regular attribute access, looks up the name in the columns
|
||||
|
||||
Args:
|
||||
key (str): Attribute name.
|
||||
|
||||
Returns:
|
||||
The value of the attribute.
|
||||
"""
|
||||
try:
|
||||
return object.__getattribute__(self, key)
|
||||
except AttributeError as e:
|
||||
if key in self._columns:
|
||||
raise NotImplementedError(
|
||||
"SeriesGroupBy is not implemented."
|
||||
"To contribute to Pandas on Ray, please visit "
|
||||
"github.com/ray-project/ray.")
|
||||
raise e
|
||||
|
||||
@property
|
||||
def _iter(self):
|
||||
from .dataframe import DataFrame
|
||||
|
|
Loading…
Add table
Reference in a new issue