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

integrate method for Series and DataFrame #26681

Closed
scls19fr opened this issue Jun 5, 2019 · 1 comment
Closed

integrate method for Series and DataFrame #26681

scls19fr opened this issue Jun 5, 2019 · 1 comment

Comments

@scls19fr
Copy link
Contributor

scls19fr commented Jun 5, 2019

Hello,

Similar to #26680 when dealing with sensors data such as power meter or flow meter and having such data in a DataFrame (or in a Series) it can be convenient to easily calculate integral of values ie calculate energy consumption from power usage, volume consumption from flow rate for example.

Maybe Series and DataFrame could have an integrate method.

Similar question have been asked on StackOverflow

https://stackoverflow.com/questions/50239878/pandas-dataframe-column-numerical-integration

Maybe it could be worth to provide a better integration with Scipy and make use of scipy.integrate.trapz.

Kind regards

PS : related issue may be #3759

@jreback
Copy link
Contributor

jreback commented Jun 5, 2019

same rationale as here: #26680 (comment)

these are not core to pandas, but could be easily added via another package and hook into the accessor api.

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

2 participants