pandas._config.config.OptionError: Pattern matched multiple keys的解决方案
今天在使用set_option('precision',3)时出现了如上的报错。将语句改为pd.options.display.precision=3就得到了解决。并且就一些其他的属性来说。set_options也被禁用。old version#pd.set_option(‘max_columns’, 40)#pd.set_option(‘max_rows’, 30)new versionpd.o
·
今天在使用set_option('precision',3)
时出现了如上的报错。
将语句改为pd.options.display.precision=3
就得到了解决。
并且就一些其他的属性来说。set_options也被禁用。
old version
#pd.set_option(‘max_columns’, 40)
#pd.set_option(‘max_rows’, 30)
new version
pd.options.display.max_rows=30
pd.options.display.max_columns=40
这说明在python学习过程的中。要用比较新的书籍。旧的参考资料会
不断的出现类似问题。
更多推荐
所有评论(0)