I have written function for gradient descent and used pandas to read csv file. But when I use data read by pandas, the function returns "nan". I can\'t understand why.