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

Implement unique+array parts of 24024 #24527

Merged
merged 4 commits into from
Jan 1, 2019
Merged

Conversation

jbrockmendel
Copy link
Member

They have tests that go with them and are reasonably self-contained.

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

small comment


* Categorical
* Period
* Datetime with Timezone
Copy link
Contributor

Choose a reason for hiding this comment

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

IntegerNA ?

Copy link
Member Author

Choose a reason for hiding this comment

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

will edit. note otherwise this is verbatim from 24024

@codecov
Copy link

codecov bot commented Jan 1, 2019

Codecov Report

Merging #24527 into master will decrease coverage by <.01%.
The diff coverage is 8.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24527      +/-   ##
==========================================
- Coverage   31.88%   31.88%   -0.01%     
==========================================
  Files         166      166              
  Lines       52413    52419       +6     
==========================================
  Hits        16714    16714              
- Misses      35699    35705       +6
Flag Coverage Δ
#multiple 30.28% <8.33%> (-0.01%) ⬇️
#single 31.88% <8.33%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/series.py 38.09% <0%> (ø) ⬆️
pandas/core/base.py 26.45% <0%> (-0.37%) ⬇️
pandas/core/algorithms.py 31.7% <50%> (ø) ⬆️

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 d5283ea...7018506. Read the comment docs.

@codecov
Copy link

codecov bot commented Jan 1, 2019

Codecov Report

Merging #24527 into master will decrease coverage by <.01%.
The diff coverage is 8.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24527      +/-   ##
==========================================
- Coverage   31.88%   31.88%   -0.01%     
==========================================
  Files         166      166              
  Lines       52413    52419       +6     
==========================================
  Hits        16714    16714              
- Misses      35699    35705       +6
Flag Coverage Δ
#multiple 30.28% <8.33%> (-0.01%) ⬇️
#single 31.88% <8.33%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/series.py 38.09% <0%> (ø) ⬆️
pandas/core/base.py 26.45% <0%> (-0.37%) ⬇️
pandas/core/algorithms.py 31.7% <50%> (ø) ⬆️

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 4b6be69...b7b7b67. Read the comment docs.

@jreback jreback added Refactor Internal refactoring of code Datetime Datetime data dtype labels Jan 1, 2019
@jreback jreback added this to the 0.24.0 milestone Jan 1, 2019
orig._values.astype(object).values)

# TODO(#24024) once orig._values returns DTA, remove
# the `._eadata` below
Copy link
Contributor

Choose a reason for hiding this comment

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

in future, can make this a proper form test (e.g. result =, expected = )

@@ -431,7 +441,7 @@ def test_value_counts_unique_nunique_null(self):
o = klass(values.repeat(range(1, len(o) + 1)))
o.name = 'a'
else:
if is_datetime64tz_dtype(o):
if isinstance(o, DatetimeIndex):
expected_index = orig._values._shallow_copy(values)
Copy link
Contributor

Choose a reason for hiding this comment

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

these are super-hacks, in future, let's try to remove

@jreback jreback merged commit f7c0bbc into pandas-dev:master Jan 1, 2019
@jreback
Copy link
Contributor

jreback commented Jan 1, 2019

thanks

@jbrockmendel jbrockmendel deleted the unique branch January 1, 2019 16:20
@jbrockmendel jbrockmendel mentioned this pull request Jan 1, 2019
12 tasks
thoo added a commit to thoo/pandas that referenced this pull request Jan 1, 2019
* upstream/master:
  BUG: output formatting with to_html(), index=False and/or index_names=False (pandas-dev#22579, pandas-dev#22747) (pandas-dev#22655)
  MAINT: Port _timelex in codebase (pandas-dev#24520)
  Implement unique+array parts of 24024 (pandas-dev#24527)
  Integer NA docs (pandas-dev#23617)
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants