Skip to content

API: MultiIndex attributes return tuple instead of FrozenList #53582

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

Closed
wants to merge 124 commits into from

Conversation

mroeschke
Copy link
Member

mroeschke and others added 14 commits August 25, 2023 12:57
* CI: Pin more cython

* Update actions-311-numpydev.yaml

* Update unit-tests.yml

* Update .github/workflows/unit-tests.yml

* Update .github/workflows/unit-tests.yml

---------

Co-authored-by: Matthew Roeschke <[email protected]>
* Fix roundtripping with pyarrow schema

* Skip for lower versions
* BUG: merge raising for ea int and numpy float

* Fix up mypy and add check
…das-dev#54746)

* Increase threashold for using binary search in IndexEngine

* Add an entry to the latest whatsnew

* Improve entry in the lastest whatsnew

---------

Co-authored-by: Patrick Hoefler <[email protected]>
It is there by default in asv > 0.6.0
* wip

* add has_only_ints_or_nan cython helper

* wip

* take care of nat

* fixup more tests

* catch interval[int64, right] warning

* just use isna

* fixup tests

* noop

* exclude NaT

---------

Co-authored-by: Joris Van den Bossche <[email protected]>
…andas-dev#54737)

* MAINT: small simplification of meson.build following best practices

* MAINT: remove comment about resolved issue

* BUG: fix build with default Homebrew Python setup

Homebrew does not install a python link, just python3.
twoertwein and others added 27 commits September 11, 2023 09:52
* TYP: fix a few types

* namespace test

* read_fwf overloads

* Revert "namespace test"

This reverts commit 0f72079.

* revert util and move kwds

* isort
* add test case of ngroup with nan value

Co-authored-by: José Lucas Silva Mayer <[email protected]>
Co-authored-by: Willian Wang <[email protected]>

* fix linter issues

Co-authored-by: José Lucas Silva Mayer <[email protected]>
Co-authored-by: Willian Wang <[email protected]>

* use Categorical object instead of pd.Categorical

Co-authored-by: José Lucas Silva Mayer <[email protected]>
Co-authored-by: Willian Wang <[email protected]>

* use native assert function

Co-authored-by: Matthew Roeschke <[email protected]>

* test full result of ngroup method

Signed-off-by: José Lucas Silva Mayer <[email protected]>

---------

Signed-off-by: José Lucas Silva Mayer <[email protected]>
Co-authored-by: Willian Wang <[email protected]>
Co-authored-by: Matthew Roeschke <[email protected]>
pandas-dev#54947)

* Use window parameter of test_freq_window_not_implemented

* Revert change in exception message
…55034)

Add missing word to `IndexOpsMixin.array` docstring
* BUG: pct_change showing unnecessary FutureWarning

* Fix df case

* Fix
…54950)

* DEPR: DataFrameGroupBy.apply operating on the group keys

* fixups

* Improvements

* Add DataFrameGroupBy.resample to the whatsnew; mypy fixup

* Ignore wrong parameter order

* Ignore groupby.resample in docstring validation

* Fixup docstring
* BLD: Build wheels for Python 3.12

* Update pyproject.toml

* Update pyproject.toml

* also circle

* fix windows?

* typo?

* try single quotes

* tyr to fix again

* just use the base shared tag, no need to append windowsservercore

* typo

* update the other too

* Update wheels.yml

* try something

* try something

* debug

* escape string?

* go for green
* Convert test_sql to pytest idiom

* Try KeyError catch

* Added drop_view to existing test method

* xfail MySQL issue
* BLD: some changes to make meson.build more idiomatic

- Use `pure: false` only in a single place. This is recommended for
  robustness, this way you can't forget it in a subdirectory and end up
  with a subtly broken package only on niche Linux distros that split
  purelib and platlib directories.
- Use `py.install_sources` with a list input rather than in a foreach
  loop.
- Remove the `werror` comment: it's never a good idea to enable
  `-Werror` by default in the build config of a library, that can easily
  break builds. This should be done in one or more CI jobs instead.

* BLD: run `generate_version.py` with a shebang, not 'python'

The way this was before can result in build failures. It assumed that
`python` is a working Python 3.x interpreter, and that is not always
true. See for example this bug report for the exact same thing in
NumPy, where `python` isn't working for Sage:
numpy/numpy#24514

Meson guarantees that .py scripts with a shebang on the top line will
be run with a Python interpreter (if there's none on the PATH, it can
use the one Meson itself is run with). Hence this is the most robust
way of using `run_command` on a .py script.
* ENH: update bundled pyperclip with changes from 1.8.2 release

Copy the changes from upstream 1.8.2 to the bundled copy of pyperclip.
The code was reformatted using black and verified using ruff.
The existing modifications from pandas were preserved.

* ENH: Remove Python 2 compatibility from imported pyperclip code

Remove the fallback to which/where that is only necessary for Python 2
that does not feature shutil.which().  Also collapse the imports
to avoid importing shutil.which() twice.  It is now only imported
as `_executable_exists()` to minimize the changes to the original code.

* BUG: Fix pylint failure (redundant `pass`) in clipboard
COMPAT: bump pyarrow min version test for div on duration
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* PERF: concat(axis=1) with unaligned indexes

* whatsnew
…ndas-dev#55057)

* fix an example in whatsnew/v0.10.0.rst

* correct thee example in v0.10.0.rst
* ENH: numba engine in df.apply

* fixes

* more fixes

* try to fix

* address code review

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* go for green

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update type

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@mroeschke
Copy link
Member Author

I'll just reopen later once it's closer to 3.0

@mroeschke mroeschke closed this Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API: Change MultiIndex.levels/codes to use tuple instead of FrozenList?