MCPcopy
hub / github.com/pandas-dev/pandas / _cython_operation

Method _cython_operation

pandas/core/groupby/ops.py:947–970  ·  view source on GitHub ↗

Returns the values of a cython operation.

(
        self,
        kind: str,
        values,
        how: str,
        axis: AxisInt,
        min_count: int = -1,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

945
946 @final
947 def _cython_operation(
948 self,
949 kind: str,
950 values,
951 how: str,
952 axis: AxisInt,
953 min_count: int = -1,
954 **kwargs,
955 ) -> ArrayLike:
956 """
957 Returns the values of a cython operation.
958 """
959 assert kind in ["transform", "aggregate"]
960
961 cy_op = WrappedCythonOp(kind=kind, how=how, has_dropped_na=self.has_dropped_na)
962
963 return cy_op.cython_operation(
964 values=values,
965 axis=axis,
966 min_count=min_count,
967 comp_ids=self.ids,
968 ngroups=self.ngroups,
969 **kwargs,
970 )
971
972 @final
973 def agg_series(

Callers 4

array_funcMethod · 0.80
ohlcMethod · 0.80
_cython_transformMethod · 0.80
arr_funcMethod · 0.80

Calls 2

cython_operationMethod · 0.95
WrappedCythonOpClass · 0.85

Tested by

no test coverage detected