Skip to content

Improve DataFrame.to_string() #27002

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

Closed
darkdragon-001 opened this issue Jun 22, 2019 · 6 comments
Closed

Improve DataFrame.to_string() #27002

darkdragon-001 opened this issue Jun 22, 2019 · 6 comments
Labels
Enhancement Needs Discussion Requires discussion from core team before further action Output-Formatting __repr__ of pandas objects, to_string

Comments

@darkdragon-001
Copy link

darkdragon-001 commented Jun 22, 2019

Add the following options:

@TomAugspurger
Copy link
Contributor

Can you make your request more explicit? As is, it'll be hard to tell whether this issue is in scope, or when it is closable.

@darkdragon-001
Copy link
Author

@TomAugspurger I updated the issue. Is it better now?

@TomAugspurger
Copy link
Contributor

A to_markdown() is discussed in #11052. That seems to cover all of your usecases, right? I don't think that to_string is likely to gain support for delimiters. It's already quite complex.

@darkdragon-001
Copy link
Author

darkdragon-001 commented Jun 22, 2019

Thanks for the hint to the to_markdown() discussion.

Multi-line cells would still be nice though, but don't make sense without delimiter support.
For now, this can also be achieved by using tabulate with another format, which was mentioned in the other issue. Although line break needs to be inserted manually and can't be inserted automatically based on column width.

@simonjayhawkins simonjayhawkins added Enhancement Output-Formatting __repr__ of pandas objects, to_string labels Jun 23, 2019
@WillAyd
Copy link
Member

WillAyd commented Jun 23, 2019

Thanks for the suggestion! I'll be frank in that I'm slightly against this as I don't see it being generally super useful for the complexity I think it would add to the code base

@WillAyd WillAyd added the Needs Discussion Requires discussion from core team before further action label Jun 23, 2019
@TomAugspurger
Copy link
Contributor

I don’t think you can do multilingual without delimiters, so this all sounds like a to_markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Needs Discussion Requires discussion from core team before further action Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

No branches or pull requests

4 participants