the first row of the data i've calculated in #NaN and i can't calculated parameters such as average and sum
import pandas as pd
#Read File:
directory = r'/Users/hosseinfatemi/Desktop/MBA Course/4th Semester/1.Quatitative/Economics/1.Project/1.Data'
Read_FDX = pd.read_excel(os.path.join(directory, 'FDX.xlsx'))
#Calculate Returns:
Read_FDX['%Returns'] = Read_FDX['Close'].pct_change().mul(100).round(2) #Average of Returns:
statistics.mean(Read_FDX['%Returns'])
i dont know what to do i tried dropping the row with:
Read_FDX.drop(index=[0])