Glossary: pandas Beyond the Basics
shift
Also written: .shift()
Moves every value down by a number of rows so each row sees an earlier one. The first rows become NaN, and it counts rows, not months.
Glossary: pandas Beyond the Basics
Also written: .shift()
Moves every value down by a number of rows so each row sees an earlier one. The first rows become NaN, and it counts rows, not months.