Skip to content

Commit 5f8dabd

Browse files
committed
Changes made according to the review
1 parent ec0ffc2 commit 5f8dabd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3885,7 +3885,7 @@ def to_csv(
38853885
38863886
Format floats using scientific notation:
38873887
3888-
>>> df.to_csv("out2.csv", float_format="{:.2e}".format) # doctest: +SKIP
3888+
>>> df.to_csv("out2.csv", float_format="{{:.2e}}".format) # doctest: +SKIP
38893889
"""
38903890
df = self if isinstance(self, ABCDataFrame) else self.to_frame()
38913891

0 commit comments

Comments
 (0)