The rate of change between the previous data and the current data
.
import pandas as pd
data=[100, 200, 100, 100, 200, 100]
df = pd.DataFrame(data)
df.pct_change()
.
00 NaN
1 1.0
2 -0.5
3 0.0
4 1.0
5 -0.5
www.marearts.com
๐๐ป♂️
The rate of change between the previous data and the current data
.
.
0
No comments:
Post a Comment