-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Comments
Note that we have another issue for setting up a pandas config system that
would be able
to read config settings from environment variables and configuration files.
I think that would
be a good compromise.
I vaguely recall some issues with it interfering with the other reps, but
it's been a while.
…On Fri, Aug 23, 2019 at 12:17 PM Manny Cato ***@***.***> wrote:
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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#28117?email_source=notifications&email_token=AAKAOIQ5IP4WZMD6MP67Y6LQGALTFA5CNFSM4IPBWGX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HHC4NGQ>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKAOISFR7AY2FPRS3HKL7LQGALTFANCNFSM4IPBWGXQ>
.
|
@simonjayhawkins might have some thoughts here |
@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... |
bump, any updates here? @TomAugspurger @WillAyd @simonjayhawkins |
#16168 is the issue with reprs I was thinking of. I'm not sure if that's still relevant with newer ipythons. |
agree with @TomAugspurger |
@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? |
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. |
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 toTrue
.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
The text was updated successfully, but these errors were encountered: