pandas使用的时候df.mean()报错了,有人能帮我看看吗

不知道什么意思,说什么The default value of numeric_only in DataFrame.mean is deprecated. In a future version, it will default to False. In addition, specifying 'numeric_only=None' is deprecated. Select only valid columns or specify the value of numeric_only to silence this warning.
这是一个警告而非错误,这个函数的这种写法已经废弃,也可以说是过时了。可以查一下此函数的最新写法