Hi Shreyans Jain , Great work on the code. But getting an error while calling the function when executing the dataframe. Traceback (most recent call last): File "C:/Users/am/Desktop/Python/Working/amfi.py", line 31, in <module> values_df = HistoricalNav(scheme_code_list = scheme_code_list[0:5], start_date= '01-05-2021', end_date= '01-05-2021') File "C:/Users/am/Desktop/Python/Working/amfi.py", line 22, in HistoricalNav df = df.sort_values(by = 'date') # sorting the values of every Scheme code based on Date File "C:\Users\am\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\frame.py", line 5455, in sort_values k = self._get_label_or_level_values(by, axis=axis) File "C:\Users\am\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\generic.py", line 1684, in _get_label_or_level_values raise KeyError(key) KeyError: 'date' Regards, Fuubutsushi