Traceback (most recent call last):


 "<stdin>", line 1, in <module>


 "C:\Users\simon\pandas\pandas\core\generic.py", line 11114, in stat_func

func, name=name, axis=axis, skipna=skipna, numeric_only=numeric_only


 "C:\Users\simon\pandas\pandas\core\frame.py", line 7990, in _reduce

res = df._data.reduce(blk_func)


 "C:\Users\simon\pandas\pandas\core\internals\managers.py", line 362, in reduce

bres = func(blk.values, *args, **kwargs)


 "C:\Users\simon\pandas\pandas\core\frame.py", line 7985, in blk_func

return op(values, axis=0, skipna=skipna, **kwds)


 "C:\Users\simon\pandas\pandas\core\nanops.py", line 120, in f

result = bn_func(values, axis=axis, **kwds)


 "<__array_function__ internals>", line 6, in nanmean


 "C:\Users\simon\Anaconda3\envs\pandas-dev\lib\site-packages\numpy\lib\nanfunctions.py", line 952, in nanmean

avg = _divide_by_count(tot, cnt, out=out)


 "C:\Users\simon\Anaconda3\envs\pandas-dev\lib\site-packages\numpy\lib\nanfunctions.py", line 219, in _divide_by_count

return a.dtype.type(a / b)
AttributeError: 'int' object has no attribute 'dtype'

Traceback (most recent call last):


 "C:\Users\91901\anaconda3\envs\tf_1\lib\site-packages\IPython\core\interactiveshell.py", line 2044, in showtraceback

stb = value._render_traceback_()
AttributeError: 'TypeError' object has no attribute '_render_traceback_'
