其他分享
首页 > 其他分享> > The default dtype for empty Series will be ‘object‘ instead of ‘float64‘ in a future version

The default dtype for empty Series will be ‘object‘ instead of ‘float64‘ in a future version

作者:互联网

警告提示:

DeprecationWarning: The default dtype for empty Series will be ‘object’ instead of ‘float64’ in a future version warning

解决方法:

将 pd.Series([])改为pd.Series([], dtype=pd.StringDtype())

标签:float64,default,Series,version,pd,dtype
来源: https://blog.csdn.net/weixin_44924661/article/details/122765544