ERR: validation options that accept callables · Issue #12706 · pandas-dev/pandas (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@jreback

Description

@jreback

#12704 (comment)

In [1]: pd.describe_option('float_format')
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 core.format.EngFormatter for an example.
    [default: None] [currently: None]

This should raise

In [2]: pd.set_option('float_format','%.1f')

Metadata

Metadata

Labels

Development

No branches or pull requests

Issue actions