lale.lib.rasl.sort_index module

class lale.lib.rasl.sort_index.SortIndex(*args, _lale_trained=False, _lale_impl=None, **kwargs)

Bases: TrainedIndividualOp

SortIndex operator.

This documentation is auto-generated from JSON schemas.

Parameters

ascending (boolean, not for optimizer, default True) – Sort by index of the dataframe.

transform(X, y=None)

Transform the data.

Parameters

X (union type) –

The outer array is over rows.

  • Any

  • or array

    • items : array of items : Any

      The inner array is over columns.

Returns

result – The outer array is over rows.

  • array

    • items : array of items : Any

      The inner array is over columns.

  • or Any

Return type

union type

transform_X_y(X, y)

Transform the data and target.

Parameters
  • X (array of items : array of items : Any) – Input features as numpy, pandas, or PySpark.

  • y (union type) –

    • None

    • or array of items : Any

      Input labels as numpy, pandas, or PySpark.

Returns

result

  • item 0 : array of items : array of items : Any

    X

  • item 1 : union type

    • None

    • or array of items : Any

      Input labels as numpy, pandas, or PySpark.

Return type

tuple