Hello I have a pandas column with n values
2018-01-03 01:30:00 14873.46
2018-01-03 01:45:00 14848.01
2018-01-03 02:00:00 14888.90
2018-01-03 02:15:00 14834.59
2018-01-03 02:30:00 14895.08
2018-01-03 02:45:00 15049.98
2018-01-03 03:00:00 15041.00
2018-01-03 03:15:00 15198.00
I want to get arrays of the percent change related to the first value of n sets. For example, I choose a set of three,
2018-01-03 01:30:00 14873.46
2018-01-03 01:45:00 14848.01
2018-01-03 02:00:00 14888.90
2018-01-03 01:45:00 14848.01
2018-01-03 02:00:00 14888.90
2018-01-03 02:15:00 14834.59
For this sets I want to be returned
#This is percentage change between all values of the set and the first value of the same set ex (14848.01 and 14873.46) and (14888.90 and 14873.46),
[-0.17,0.10]
[0.27,-0.09]
How can I get it donne using pandas