Commented the chunking code. Made changes to the min max expression , adding 1 to the denominator. Changed the code for dataframe creation.