Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enh 60503 print precision #1

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

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