Skip to content

ERR: validation options that accept callables #12706

Closed
@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

Assignees

No one assigned

    Labels

    Error ReportingIncorrect or improved errors from pandas

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions