Glossary: pandas Beyond the Basics
diff
Also written: .diff()
Subtracts the previous row's value from each value. After `groupby` it subtracts within each group only, such as the gap between a customer's orders.
Glossary: pandas Beyond the Basics
Also written: .diff()
Subtracts the previous row's value from each value. After `groupby` it subtracts within each group only, such as the gap between a customer's orders.