---
title: "fuubutsushi (@fuubutsushi) | Hashnode"
description: "fuubutsushi (@fuubutsushi) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@fuubutsushi"
---

@fuubutsushi

# fuubutsushi

@fuubutsushi · Joined June 2021

## Comments

[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](https://hashnode.com/posts/getting-mutual-funds-net-asset-value-via-python-using-mftools-api/609c0760e8590d4b4460ec46/comment/60d55b765ed303057acea368)

Comment · Article · Jun 25, 2021 · [Getting Mutual Funds Net Asset Value via Python using mftools API](https://hashnode.com/posts/getting-mutual-funds-net-asset-value-via-python-using-mftools-api/609c0760e8590d4b4460ec46)
