pandas icon indicating copy to clipboard operation
pandas copied to clipboard

QST: to_perioddelta

Open Leohanhart opened this issue 2 years ago • 2 comments

Research

  • [X] I have searched the [pandas] tag on StackOverflow for similar questions.

  • [X] I have asked my usage related question on StackOverflow.

Link to question on StackOverflow

There is not.

Question about pandas

Dear development team,

I make a lot of use of the function df.index.to_perioddelta("Y"/"M") to create seasonal data. Now i receive an warning: main:1: Future Warning: to_perioddelta is deprecated and will be removed in a future version. Use dtindex - dtindex.to_period(freq).to_timestamp() instead.

This function is NOT the same, there is NO function in to_periode that creates an index like that. There is no documentation of this feature so it probably doesnt exsits. So please do not remove this function, don't do this, this is not adding any value in any way and it makes my life way harder. Or if so, please show me an alternative with the example above and a link where I can find this because it doesnt exists.

Leohanhart avatar Aug 07 '22 15:08 Leohanhart

@Leohanhart please be respectful, constructive criticism is always welcome. see the https://github.com/pandas-dev/.github/blob/master/CODE_OF_CONDUCT.md

pandas is an all volunteer project.

jreback avatar Aug 07 '22 16:08 jreback

Can you please provide with an example of what is broken?

pratyushsharan avatar Aug 08 '22 11:08 pratyushsharan

Closing, please ping to reopen if you can adress questions

phofl avatar Aug 15 '22 15:08 phofl

I'm on holiday right now. I come back later. Please don't remove this function.

Op zo 7 aug. 2022 18:21 schreef Jeff Reback @.***>:

@Leohanhart https://github.com/Leohanhart please be respectful, constructive criticism is always welcome. see the https://github.com/pandas-dev/.github/blob/master/CODE_OF_CONDUCT.md

pandas is an all volunteer project.

— Reply to this email directly, view it on GitHub https://github.com/pandas-dev/pandas/issues/48001#issuecomment-1207440890, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFRLRXWNZP5DMZ2AWCSV52TVX7PAVANCNFSM552VEOXQ . You are receiving this because you were mentioned.Message ID: @.***>

Leohanhart avatar Aug 16 '22 10:08 Leohanhart