Skip to content

BUG: Fixed accessor for Categorical[Datetime] #19469

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

Closes #19468

No release note, since this was only a regression on master.

cc @jschendel.

@TomAugspurger TomAugspurger added this to the 0.23.0 milestone Jan 30, 2018
@TomAugspurger TomAugspurger added Datetime Datetime data dtype Categorical Categorical Data Type labels Jan 30, 2018
@codecov
Copy link

codecov bot commented Jan 30, 2018

Codecov Report

Merging #19469 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #19469      +/-   ##
==========================================
- Coverage   91.62%   91.59%   -0.03%     
==========================================
  Files         150      150              
  Lines       48724    48728       +4     
==========================================
- Hits        44642    44633       -9     
- Misses       4082     4095      +13
Flag Coverage Δ
#multiple 89.96% <100%> (-0.03%) ⬇️
#single 41.74% <0%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/indexes/accessors.py 90.19% <100%> (+0.19%) ⬆️
pandas/plotting/_converter.py 65.22% <0%> (-1.74%) ⬇️
pandas/core/frame.py 97.42% <0%> (-0.16%) ⬇️
pandas/core/generic.py 95.91% <0%> (ø) ⬆️
pandas/util/testing.py 83.85% <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 238499a...ac95946. Read the comment docs.

@jschendel
Copy link
Member

Thanks, LGTM

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.

lgtm other than minor point.

def test_dt_namespace_accessor_categorical(self):
# GH 19468
dti = pd.DatetimeIndex(['20171111', '20181212']).repeat(2)
s = pd.Series(pd.Categorical(dti), name='foo')
Copy link
Contributor

Choose a reason for hiding this comment

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

can you not use pd. here where we don't elsewhere

@jreback
Copy link
Contributor

jreback commented Jan 31, 2018

lgtm. merge on green.

@TomAugspurger TomAugspurger merged commit 12ac43f into pandas-dev:master Jan 31, 2018
@TomAugspurger TomAugspurger deleted the categorical-dti-accessor branch January 31, 2018 17:00
harisbal pushed a commit to harisbal/pandas that referenced this pull request Feb 28, 2018
* BUG: Fixed accessor for Categorical[Datetime]

* Fixup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Categorical Categorical Data Type Datetime Datetime data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants