-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: add np.nan* funcs to cython_table #22109
ENH: add np.nan* funcs to cython_table #22109
Conversation
e85a39d
to
449d912
Compare
449d912
to
b12371d
Compare
Codecov Report
@@ Coverage Diff @@
## master #22109 +/- ##
=======================================
Coverage 92.22% 92.22%
=======================================
Files 169 169
Lines 51261 51261
=======================================
Hits 47277 47277
Misses 3984 3984
Continue to review full report at Codecov.
|
so couple of things on this. I don't the the additional functions are actually tested when run in pandas/tests/frame/test_apply.py. Its also very hard to see as the |
@topper-123 can you rebase |
can you rebase |
b12371d
to
7080d24
Compare
Hello @topper-123! Thanks for updating the PR.
|
7080d24
to
4dc9980
Compare
4dc9980
to
51198ad
Compare
Rebased. Also, there were xfailed tests in |
thanks! |
…y_tests * repo_org/master: (52 commits) ENH: Allow rename_axis to specify index and columns arguments (pandas-dev#20046) STY: proposed isort settings [ci skip] [skip ci] [ciskip] [skipci] (pandas-dev#23366) MAINT: Remove extraneous test.parquet file CLN: Follow-up comments to pandas-devgh-23392 (pandas-dev#23401) BUG GH23282 calling min on series of NaT returns NaT (pandas-dev#23289) unpin openpyxl (pandas-dev#23361) REF: collect ops dispatch functions in one place, try to de-duplicate SparseDataFrame methods (pandas-dev#23060) CLN: Remove pandas.tools module (pandas-dev#23376) CLN: Remove some dtype methods from API (pandas-dev#23390) CLN: Cleanup toplevel namespace shims (pandas-dev#23386) DOC: fixup whatsnew note for GH21394 (pandas-dev#23355) Fix import format at pandas/tests/extension directory (pandas-dev#23365) DOC: Remove Series.sortlevel from api.rst (pandas-dev#23395) API: Disallow dtypes w/o frequency when casting (pandas-dev#23392) BUG/TST/REF: Datetimelike Arithmetic Methods (pandas-dev#23215) STYLE: lint add np.nan* funcs to cython_table (pandas-dev#22109) Run Isort on tests/util single PR (pandas-dev#23347) BUG: Fix date_range overflow (pandas-dev#23345) Run Isort on tests/arrays single PR (pandas-dev#23346) ...
git diff upstream/master -u -- "*.py" | flake8 --diff
This PR ensures that
Series.agg
can correctly take np.nan* funcs as inputs, e.g.:Previously that operation returned a Series. See #19629 for details.
Tests are added through the use of
_get_cython_table_params
in the parametrisation oftest_agg_cython_table
test function inseries/test_apply
/frame/test_apply
.