[英]Pandas DataFrame.to_latex() doesn't recognize column_format
I am creating latex tables from Pandas DataFrames using the .to_latex() command. 我正在使用.to_latex()命令从Pandas DataFrames创建乳胶表。 According to its documentation it has a column_format keyword argument, but when I try to set it to 'cccc' I get an error: 根据其文档,它具有column_format关键字参数,但是当我尝试将其设置为“ cccc”时,出现错误:
to_latex() got an unexpected keyword argument 'cols_format'
Why does this happen? 为什么会这样?
EDIT: The error message I get is actually 编辑:我得到的错误信息实际上是
TypeError: to_latex() got an unexpected keyword argument 'column_format'
关键字参数是column_format
NOT cols_format
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.