Skip to content

API: consistent float_format specification #9448

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

Open
jorisvandenbossche opened this issue Feb 9, 2015 · 3 comments
Open

API: consistent float_format specification #9448

jorisvandenbossche opened this issue Feb 9, 2015 · 3 comments
Labels
API - Consistency Internal Consistency of API/Behavior Enhancement IO CSV read_csv, to_csv Output-Formatting __repr__ of pandas objects, to_string

Comments

@jorisvandenbossche
Copy link
Member

For now just some observations:

Question:

  • Should we make this consistent? Eg that all methods can accept both a format string as a format function?
  • Should we make the usage of '{:.3f}'.format) more convenient?

There are a lot of different issues already about formatting, but I didn't find anything about this in specific.

@jorisvandenbossche
Copy link
Member Author

Aha, related issue: #2502 (about the format of the format string), but this was closed in favor of #4668

@jorisvandenbossche jorisvandenbossche added Output-Formatting __repr__ of pandas objects, to_string IO CSV read_csv, to_csv labels Feb 9, 2015
@jreback
Copy link
Contributor

jreback commented Feb 9, 2015

put he reference on #4668

@jorisvandenbossche jorisvandenbossche added this to the Next Major Release milestone Jul 11, 2016
@jbrockmendel jbrockmendel added the API - Consistency Internal Consistency of API/Behavior label Dec 28, 2019
@mroeschke mroeschke removed this from the Contributions Welcome milestone Oct 13, 2022
@davetapley
Copy link
Contributor

davetapley commented Jun 6, 2023

This is probably a separate issue, but:

There are a lot of different issues already about formatting


Just to be sure: there is still no way to provide a per column float_format, as styler offers?

If so, and if we're going to shoot for consistent float_format, then might I suggest it also aligns with styler?


See also:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API - Consistency Internal Consistency of API/Behavior Enhancement IO CSV read_csv, to_csv Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

No branches or pull requests

5 participants