The following code produce this warning: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame.
self.df_rankpct["rank