Skip to content

median_grouped() returns a float #7824

Closed
@rhettinger

Description

@rhettinger

There was a bug in median_grouped() that allowed the output type for match in the input type for iterables of length one. Otherwise, it always returned a float.

def median_grouped(data: Iterable[_NumberT], interval: _NumberT = ...) -> _NumberT: ...

That bug was fixed. The input types are anything convertible to a float and the output is always a float.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions