Skip to content

Commit 4840bb6

Browse files
Update pandas/io/formats/format.py
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent feb4b4a commit 4840bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/formats/format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ def _validate_float_format(
867867
else:
868868
try:
869869
_ = fmt.format(1.0) # Test with an arbitrary float
870-
return lambda x: fmt.format(x)
870+
return fmt.format
871871
except (ValueError, KeyError, IndexError) as e:
872872
raise ValueError(f"Invalid new-style format string {fmt!r}") from e
873873

0 commit comments

Comments
 (0)