Skip to content

Commit 5643e08

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

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas/io/formats/format.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -857,11 +857,7 @@ def _validate_float_format(
857857
Validates and processes the float_format argument.
858858
Converts new-style format strings to callables.
859859
"""
860-
861-
if fmt is None:
862-
return None
863-
864-
if callable(fmt):
860+
if fmt is None or callable(fmt):
865861
return fmt
866862

867863
if isinstance(fmt, str):

0 commit comments

Comments
 (0)