ERR: validation options that accept callables (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

pandas-dev / pandas Public

Additional navigation options

New issue

New issue

Closed

Closed

ERR: validation options that accept callables

#12706

Labels

Error ReportingIncorrect or improved errors from pandas

Milestone

0.18.1

@jreback

Description

@jreback

jreback

opened

on Mar 23, 2016

#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