How do I get percentage changes instead of absolute levels in my Python data download?

To change absolute levels to percentage changes, do this:

data = quandl.get("NSE/OIL", transformation="rdiff")
Other transformations available include raw changes, normalized growth from 100, and cumulative sums:
data = quandl.get("NSE/OIL") 					# raw data 
data = quandl.get("NSE/OIL", transformation="diff") 	 	# changes 
data = quandl.get("NSE/OIL", transformation="rdiff") 		# percentage changes	 
data = quandl.get("NSE/OIL", transformation="normalize") 	# growth from 100 
data = quandl.get("NSE/OIL", transformation="cumul") 		# cumulative sum
		

Still need help? Contact Us Contact Us