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

Method check_fun

pandas/tests/test_nanops.py:370–388  ·  view source on GitHub ↗
(
        self, testfunc, targfunc, testar, skipna, empty_targfunc=None, **kwargs
    )

Source from the content-addressed store, hash-verified

368 )
369
370 def check_fun(
371 self, testfunc, targfunc, testar, skipna, empty_targfunc=None, **kwargs
372 ):
373 targar = testar
374 if testar.endswith("_nan") and hasattr(self, testar[:-4]):
375 targar = testar[:-4]
376
377 testarval = getattr(self, testar)
378 targarval = getattr(self, targar)
379 self.check_fun_data(
380 testfunc,
381 targfunc,
382 testar,
383 testarval,
384 targarval,
385 skipna=skipna,
386 empty_targfunc=empty_targfunc,
387 **kwargs,
388 )
389
390 def check_funs(
391 self,

Callers 1

check_funsMethod · 0.95

Calls 2

check_fun_dataMethod · 0.95
endswithMethod · 0.80

Tested by

no test coverage detected