Skip to content

Support __array_ufunc__ in lmo.l_(loc|scale|variation|skew|kurtosis)  #184

@jorenham

Description

@jorenham

Currently, these always return a np.ndarray, even when the input is an e.g. pd.Series.

By making these functions aware of the potential __array_ufunc__ or __array_function__ methods, it can automatically "lift" itself, so that the types of ufunc-aware instances can pass-though.

It's probably best to use np.frompyfunc for this.

Note that this will require additional @overload's.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contribIntegration with 3rd party packagesenhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions