Danacondalibsite-packagesseabornaxisgridpy1310 FutureWarning The default dtype for empty Series will be object instead of float64 in a future version Specify a dtype explicitly to silence this warning
这是一个FutureWarning警告,提示在未来版本中,空的Series默认的数据类型将变为'object'而不是'float64'。为了消除这个警告,可以在创建Series时显式指定数据类型,例如:
self.hue_vals = pd.Series(["_nolegend_"] * len(data), dtype='object')
原文地址: https://www.cveoy.top/t/topic/hhru 著作权归作者所有。请勿转载和采集!