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

Timestamp.replace should take freq kwarg #18544

Closed
jbrockmendel opened this issue Nov 28, 2017 · 3 comments
Closed

Timestamp.replace should take freq kwarg #18544

jbrockmendel opened this issue Nov 28, 2017 · 3 comments
Labels
Datetime Datetime data dtype Enhancement

Comments

@jbrockmendel
Copy link
Member

>>> ts.replace(freq=None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pandas/_libs/tslibs/timestamps.pyx", line 840, in pandas._libs.tslibs.timestamps.Timestamp.replace
    def replace(self, year=None, month=None, day=None,
TypeError: replace() got an unexpected keyword argument 'freq'
@jreback jreback changed the title Timestamp.replace should take freq kwarg Timestamp.replace should take freq kwarg Nov 29, 2017
@jreback
Copy link
Contributor

jreback commented Nov 29, 2017

I suppose. though this mainly for compat with datetime.datetime.

@jreback jreback added this to the Next Major Release milestone Nov 29, 2017
@jbrockmendel jbrockmendel mentioned this issue Nov 30, 2017
59 tasks
@jbrockmendel
Copy link
Member Author

Fair enough. I just put it on the list along with handling DST transition gracefully. Closing (though leaving the DST one open since it would be nice to lock down.

BTW: I haven't seen much pandas2 discussion recently. Has that migrated to somewhere (public) where I can follow it?

@jreback
Copy link
Contributor

jreback commented Nov 30, 2017

just did a talk yesterday: https://www.slideshare.net/JeffReback/future-of-pandas-82901487

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

No branches or pull requests

2 participants