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

DOC/DEPR: pivot_annual #13706

Closed
wants to merge 1 commit into from
Closed

Conversation

sinhrks
Copy link
Member

@sinhrks sinhrks commented Jul 19, 2016

Updated cookbook attaching SO link of original issue.

BTW, pivot_annual has a similar functionality but it looks to be replaced by pivot_table and datetime property access. Because the function is not on top pd namespace, shouldn't deprecate it?

@sinhrks sinhrks added Docs Deprecate Functionality to remove in pandas labels Jul 19, 2016
@sinhrks sinhrks added this to the 0.19.0 milestone Jul 19, 2016
@jreback
Copy link
Contributor

jreback commented Jul 19, 2016

yes this lgtm. @jorisvandenbossche any objections?

@codecov-io
Copy link

Current coverage is 84.54%

Merging #13706 into master will decrease coverage by <.01%

@@             master     #13706   diff @@
==========================================
  Files           141        141          
  Lines         51185      51164    -21   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits          43275      43255    -20   
+ Misses         7910       7909     -1   
  Partials          0          0          

Powered by Codecov. Last updated by 506520b...d097bab

@jorisvandenbossche
Copy link
Member

No real objections from me, although the functions (looking at the length of the code) seems to do a lot more than the cookbook example?
SO gives no results for a search for pivot_annual, a good sign :-)

Deprecate isleapyear as well?

@jreback
Copy link
Contributor

jreback commented Jul 19, 2016

I agree should deprecate isleapyear but add on as an accessor for Timestamp/DTI and .dt
which should be straightforward to do

@jreback jreback closed this in b25a2a1 Jul 20, 2016
@jorisvandenbossche
Copy link
Member

@jreback There were still some unresolved comments I think (deprecating isleapyear as well)

@jreback
Copy link
Contributor

jreback commented Jul 20, 2016

@jorisvandenbossche ahh yes, I mean to make an issue about that.

@sinhrks
Copy link
Member Author

sinhrks commented Jul 20, 2016

I wii subbmit new PR (to deprecate isleapyear and adding the same proprty).

one minor pount is the property name. Timestamp has property like .is_year_end, numpy datetime.c has is_leapyear on the other hand. Which is prefereble, is_leap_year or is_leapyear?

@jorisvandenbossche
Copy link
Member

no problem!

@sinhrks sinhrks deleted the pivot_annual branch July 20, 2016 21:40
@jreback jreback mentioned this pull request Jul 20, 2016
@jreback
Copy link
Contributor

jreback commented Jul 20, 2016

I think is_leapyear is fine

leapyear is really the common english word (I see though already getting inconsistent as we should really do is_year_leap)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas Docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a generic version of convert_to_annual function in scikits.timeseries
4 participants