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

Enable pd.options.display.html.table_schema = True By Default #28117

Open
playermanny2 opened this issue Aug 23, 2019 · 8 comments
Open

Enable pd.options.display.html.table_schema = True By Default #28117

playermanny2 opened this issue Aug 23, 2019 · 8 comments
Labels
Enhancement IO HTML read_html, to_html, Styler.apply, Styler.applymap

Comments

@playermanny2
Copy link

Problem description

This is an enhancement request

In order to enable a pandas to provide a JSON schema representation of the dataframe utilizing application/vnd.dataresource+json, pd.options.display.html.table_schema must be set to True.

I'm just wondering if this could be set to True by default? That way front-ends that support it, can ingest it without having to enable it from the import. Not sure on the implications, but wanted to start the convo...

Code Sample

import pandas as pd
pd.options.display.html.table_schema = True

@TomAugspurger
Copy link
Contributor

TomAugspurger commented Aug 23, 2019 via email

@WillAyd
Copy link
Member

WillAyd commented Aug 25, 2019

@simonjayhawkins might have some thoughts here

@WillAyd WillAyd added the IO HTML read_html, to_html, Styler.apply, Styler.applymap label Aug 25, 2019
@playermanny2
Copy link
Author

@TomAugspurger Yup. I think that could be a better compromise then having to change the setting in a notebook or create a library module to import and set pandas config. Would you be able to attach that issue so that I can follow?

@WillAyd @simonjayhawkins Definitely would also be interested in any other thoughts...

@playermanny2
Copy link
Author

bump, any updates here? @TomAugspurger @WillAyd @simonjayhawkins

@TomAugspurger
Copy link
Contributor

#16168 is the issue with reprs I was thinking of. I'm not sure if that's still relevant with newer ipythons.

@simonjayhawkins
Copy link
Member

@WillAyd @simonjayhawkins Definitely would also be interested in any other thoughts...

agree with @TomAugspurger

@playermanny2
Copy link
Author

@simonjayhawkins Okay great, thank you for the help and suggestions guys.

Would it be oaky to leave this open as a possible future enhancement in the case that issue with reprs is no longer a thing?

@TomAugspurger
Copy link
Contributor

If we can have a concrete example of what's not working well now, and what needs to change to fix it, then yes let's keep this open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement IO HTML read_html, to_html, Styler.apply, Styler.applymap
Projects
None yet
Development

No branches or pull requests

5 participants