Python DataFrame .fillna() Recursion Error
Not sure if this was the correct thing todo or not but I cleared out the Kernel in Jupyter Notebook and ran it just fine.
I am working on a learning how to fill in NaN in a Python DataFrame. DataFrame called data containing an age column and only one row has an NaN. I applied the following:
data.fillna(data.mean(),inplace=True)
I ask to print out data and I receive a recursion msg.
My DataFrame only contains 4 rows if that is important.
I was expecting the DataFrame to come back with the NaN filled in with the mean value. I also tried replacing data.mean() with a number ex. 2.  Same error message.