[pyspark] Don't stack for non feature columns (#9088)
This commit is contained in:
parent
a2cc78c1fb
commit
17add4776f
@ -219,6 +219,8 @@ def create_dmatrix_from_partitions( # pylint: disable=too-many-arguments
|
||||
array: Optional[np.ndarray] = part[feature_cols]
|
||||
elif part[name].shape[0] > 0:
|
||||
array = part[name]
|
||||
if name == alias.data:
|
||||
# For the array/vector typed case.
|
||||
array = stack_series(array)
|
||||
else:
|
||||
array = None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user