Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add groupby example
Browse files Browse the repository at this point in the history
andrewgsavage committed Dec 31, 2024
1 parent 90c16fe commit 0843d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user/reading.rst
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ As previously, operations between DataFrame columns are unit aware
df_["ShaftTorque"] = df_.ShaftPower / df_.ShaftSpeed
df_["FluidPower"] = df_["FlowRate"] * df_["DifferentialPressure"]
df_
df_.groupby(by=["ShaftSpeedIndex"])[['FlowRate', 'DifferentialPressure', 'ShaftPower', 'Efficiency']].mean()
The DataFrame's pint.dequantify method then allows us to retrieve the units information as a header row once again.

0 comments on commit 0843d28

Please sign in to comment.