Hello all, I am trying to do a simple .pivot_table() operation on a dataframe using pandas and I keep getting this error:
TypeError: int() argument must be a string, a bytes-like object or a number, not '_NoValueType'
When running the .py file locally I get no such error, only on pythonanywhere.
I have to say that my research has not returned any results
I am running this snippet
df.pivot_table(index=index,values=values',columns=columns',aggfunc=np.sum,fill_value=0)
index, values, and columns are all strings that refer to the columns of df.
Thank you all