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

timedelta cannot convert to monthly data. #19443

Closed
effath opened this issue Jan 29, 2018 · 2 comments
Closed

timedelta cannot convert to monthly data. #19443

effath opened this issue Jan 29, 2018 · 2 comments
Labels
Deprecate Functionality to remove in pandas Duplicate Report Duplicate issue or pull request Timedelta Timedelta data type

Comments

@effath
Copy link

effath commented Jan 29, 2018

Timedelta cannot convert x minute timesereies to monthly series. Each time I try to use it will upsample x minute data to 1 minute data. See

https://stackoverflow.com/questions/48467042/dask-dataframes-time-series-partitions

@chris-b1
Copy link
Contributor

Timedelta is only for fixed offsets (seconds, days, etc), it can't and won't handle months - DateOffset and subclasses handle any relative offsets.

That said, I do see the potential for confusion given the dual use of 'M', would at minimum take doc enhancements, maybe OK with a warning for pd.Timedelta('xM')?

@jreback
Copy link
Contributor

jreback commented Jan 29, 2018

#16344

we are already deprecating this. pull-requests are welcome!

@jreback jreback closed this as completed Jan 29, 2018
@jreback jreback added Duplicate Report Duplicate issue or pull request Timedelta Timedelta data type Deprecate Functionality to remove in pandas labels Jan 29, 2018
@jreback jreback added this to the No action milestone Jan 29, 2018
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 Duplicate Report Duplicate issue or pull request Timedelta Timedelta data type
Projects
None yet
Development

No branches or pull requests

3 participants