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

Add diff/pctChange to Series #429

Open
joshuakoh1 opened this issue Mar 24, 2022 · 3 comments
Open

Add diff/pctChange to Series #429

joshuakoh1 opened this issue Mar 24, 2022 · 3 comments

Comments

@joshuakoh1
Copy link

diff and pctChange features added in #418 #414 only extend to DataFrames. Currently unable to apply to a single column slice without adding extra steps.

@risenW
Copy link
Member

risenW commented Apr 2, 2022

@NeonSpork Would you like to work on this?

@NeonSpork
Copy link
Contributor

NeonSpork commented Apr 2, 2022

I think we need more information specifically about what you're trying to achieve that's failing, and how @joshuakoh1 ?

The diff/pctChange functions should mirror the behavior of the other math functions like pow etc, and it should accept a single number, series, column, etc, already.

Can you provide example code, errors and more detailed information about what behavior you expected please?

@joshuakoh1
Copy link
Author

@NeonSpork Just trying to calc the diff/pctChange for a single series instead of the full DataFrame. Would like to be able to do df.column.pctChange(1) instead of df.pctChange(1).column. The latter performs unnecessary operations.

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

No branches or pull requests

3 participants