Skip to content
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

TST/API: Forbid str-accessor for 1-level MultiIndex #26608

Merged
merged 5 commits into from
Jun 3, 2019

Conversation

h-vetinari
Copy link
Contributor

Another PR that had been blocked by #23167.

@codecov
Copy link

codecov bot commented Jun 1, 2019

Codecov Report

Merging #26608 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26608      +/-   ##
==========================================
- Coverage   91.88%   91.87%   -0.01%     
==========================================
  Files         174      174              
  Lines       50692    50692              
==========================================
- Hits        46576    46571       -5     
- Misses       4116     4121       +5
Flag Coverage Δ
#multiple 90.41% <ø> (ø) ⬆️
#single 41.78% <ø> (-0.11%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 78.94% <0%> (-10.53%) ⬇️
pandas/core/frame.py 97% <0%> (-0.12%) ⬇️
pandas/util/testing.py 90.81% <0%> (-0.11%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6354580...0973309. Read the comment docs.

@@ -434,6 +434,8 @@ Other API Changes
- The ``arg`` argument in :meth:`pandas.core.groupby.DataFrameGroupBy.agg` has been renamed to ``func`` (:issue:`26089`)
- The ``arg`` argument in :meth:`pandas.core.window._Window.aggregate` has been renamed to ``func`` (:issue:`26372`)
- Most Pandas classes had a ``__bytes__`` method, which was used for getting a python2-style bytestring representation of the object. This method has been removed as a part of dropping Python2 (:issue:`26447`)
- The `.str`-accessor has been disabled for 1-level :class:`MultiIndex` (almost all methods were previously broken for this case),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the parenthetical is not necessary

did this actually work at some point?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The methods could be called but produced garbage, see #23679.

@jreback jreback added this to the 0.25.0 milestone Jun 2, 2019
@jreback
Copy link
Contributor

jreback commented Jun 2, 2019

lgtm. pls merge master, ping on green.

@jreback jreback merged commit 8d124ea into pandas-dev:master Jun 3, 2019
@jreback
Copy link
Contributor

jreback commented Jun 3, 2019

thanks

@h-vetinari h-vetinari deleted the mi_str branch June 5, 2019 22:15
vaibhavhrt pushed a commit to vaibhavhrt/pandas that referenced this pull request Jun 6, 2019
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/BUG: allow .str-accessor for 1-level MultiIndex? Return what?
3 participants