Skip to content

Conversation

@hongshaoyang
Copy link
Contributor

@hongshaoyang hongshaoyang commented Oct 10, 2020

Copy link
Member

@rhshadrach rhshadrach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change seems less precise than what is in Settings and Options. Can we just copy that?

Floating point output precision in terms of number of places after the decimal, for regular formatting as well as scientific notation. Similar to numpy’s precision print option

Floating point output precision (number of significant digits). This is
only a suggestion
Floating point output precision (in terms of decimal places). Similar to
numpy's ``precision`` print option.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can directly reference the numpy function itself :meth:`np. ....`

@jreback jreback added Docs Output-Formatting __repr__ of pandas objects, to_string labels Oct 10, 2020
@hongshaoyang
Copy link
Contributor Author

hongshaoyang commented Oct 10, 2020

Thanks @jreback, @rhshadrach, updated. may I get this PR labelled as hacktoberfest-accepted?

See #36837 and here.

@hongshaoyang
Copy link
Contributor Author

all checks passing.

@jreback jreback added this to the 1.2 milestone Oct 12, 2020
@jreback jreback merged commit 4594c2a into pandas-dev:master Oct 12, 2020
@jreback
Copy link
Contributor

jreback commented Oct 12, 2020

thanks @hongshaoyang

@hongshaoyang hongshaoyang deleted the displayprecision branch October 17, 2020 02:51
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Oct 26, 2020
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Docs Output-Formatting __repr__ of pandas objects, to_string

3 participants