答案 0 :(得分:2)
您可以尝试按照类似issue:
中提到的内容进行操作pd.set_option('float_format',lambda x: "%.6f" % x)
来自文件:
display.float_format : callable
The callable should accept a floating point number and return
a string with the desired format of the number. This is used
in some places like SeriesFormatter.
See formats.format.EngFormatter for an example.
[default: None] [currently: None]