Skip to content

BUG: Fixed Series.align(frame) with ExtensionArray #20580

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

Merged

Conversation

TomAugspurger
Copy link
Contributor

@TomAugspurger TomAugspurger added Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Reshaping Concat, Merge/Join, Stack/Unstack, Explode ExtensionArray Extending pandas with custom dtypes or arrays. labels Apr 2, 2018
@TomAugspurger TomAugspurger added this to the 0.23.0 milestone Apr 2, 2018
@jorisvandenbossche
Copy link
Member

That fixed it! Thanks

@codecov
Copy link

codecov bot commented Apr 2, 2018

Codecov Report

Merging #20580 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #20580      +/-   ##
==========================================
+ Coverage   91.82%   91.82%   +<.01%     
==========================================
  Files         152      152              
  Lines       49255    49255              
==========================================
+ Hits        45226    45228       +2     
+ Misses       4029     4027       -2
Flag Coverage Δ
#multiple 90.21% <100%> (ø) ⬆️
#single 41.9% <100%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/core/dtypes/cast.py 87.85% <100%> (ø) ⬆️
pandas/util/testing.py 84.73% <0%> (+0.2%) ⬆️

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 4efb39f...c26c454. Read the comment docs.

@@ -64,6 +65,20 @@ def test_align_frame(self, data, na_value):
self.assert_frame_equal(r1, e1)
self.assert_frame_equal(r2, e2)

def test_align_series_frame(self, data, na_value):
# /Users/taugspurger/sandbox/pandas-ip/pandas/pandas/tests/extension/base/reshaping.py
Copy link
Member

Choose a reason for hiding this comment

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

suppose this is a left over?

@@ -75,6 +75,10 @@ def test_align(self, data, na_value):
def test_align_frame(self, data, na_value):
pass

@pytest.mark.skip(reason="Unobserved categories preseved in concat.")
def test_align_series_frame(self, data, na_value):
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this only because the way the test is constructed? You can also do it with the full of data instead of only the first 3 elements. Then this is not an issue?

@jorisvandenbossche jorisvandenbossche merged commit d305d6a into pandas-dev:master Apr 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ExtensionArray Extending pandas with custom dtypes or arrays. Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants