@@ -88,7 +88,7 @@ def __init__(
88
88
if not isinstance (data , Collection ) or len (data ) == 1 :
89
89
if not isinstance (data , Collection ):
90
90
data = [data ]
91
- self ._set_data_ref (data [0 ]._data_ref )
91
+ self ._set_data_ref (data [0 ]._data )
92
92
self ._num_splits = 1
93
93
self ._list_of_block_partitions = data
94
94
return
@@ -119,6 +119,7 @@ def __init__(
119
119
# TODO: We have a subset of the same frame here and can just get a single chunk
120
120
# from the original frame instead of concatenating all these chunks.
121
121
122
+ data = [part ._data for part in self ._list_of_block_partitions ]
122
123
self ._set_data_ref (self ._concat (refs ))
123
124
124
125
def _set_data_ref (
@@ -165,16 +166,16 @@ def apply(
165
166
if other_axis_partition is not None :
166
167
if isinstance (other_axis_partition , Collection ):
167
168
if len (other_axis_partition ) == 1 :
168
- other_part = other_axis_partition [0 ]._data_ref
169
+ other_part = other_axis_partition [0 ]._data
169
170
else :
170
171
concat_fn = (
171
172
PandasOnRayDataframeColumnPartition
172
173
if self .axis
173
174
else PandasOnRayDataframeRowPartition
174
175
)._concat
175
- other_part = concat_fn ([p ._data_ref for p in other_axis_partition ])
176
+ other_part = concat_fn ([p ._data for p in other_axis_partition ])
176
177
else :
177
- other_part = other_axis_partition ._data_ref
178
+ other_part = other_axis_partition ._data
178
179
args = [other_part ] + list (args )
179
180
180
181
de = self ._apply (func , args , kwargs )
0 commit comments