Skip to content

Conversation

aydinomer00
Copy link
Owner

ENH: Make print_thing respect display.precision for Real numbers

This PR modifies the print_thing function to respect display.precision settings when formatting Real numbers. For example:

with pd.option_context('display.precision', 2):
    print(df)  # Shows 3.14

with pd.option_context('display.precision', 4):
    print(df)  # Shows 3.1416

- Replace isinstance(thing, Real) with is_float
- Remove Turkish comments and unnecessary inline comments
- Move test_pprint_thing_real_precision to TestPPrintThing class
- Use consistent printing.pprint_thing import style
- Remove Real numbers reference from docstring
- Remove Turkish comments
- Fix import structure in tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ENH: How about let pprint_thing print Real instance according to display.precision

1 participant