Some fixes to price estimation.

Much breakage in whole project due to change in Pandas version.