-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
ENH: #2679 - DataFrame.to_html() urls_as_links parameter. #10294
Conversation
New urls_as_links boolean paramater that will output urls as href html links. ref pandas-dev#2679
@TomAugspurger (I recall you doing some work on conditional html formatting, though orthogonal to this affect API) |
@lexual can you rebase |
@lexual can you rebase / update |
pls see comments on #9880 |
IOW this needs to have a global option (that defaults to |
closing, but if you would like to continue working on this pls reopen |
I have rebased, but don't have permissions to re-open I believe. Please advise next steps to get it merged. Apologies for long absence ;) |
rebase @jreback |
@lexual this is more appropriate as a method in e.g.
And the idea is that a style can be created that can be |
@lexual let me know if you want to do that PR agains my branch in #10250, it will actually be quite simple thanks to jinja. Right now in the Jinja template I've got a check for if the value is a number or not. Jinja has a urlize filter that you can apply to the else block. We will need a more general way of applying arbitrary tags / modify the template, but that could work for now. |
@TomAugspurger yep, I'll try to take a look when I get a chance. |
New urls_as_links boolean paramater that will output urls as href html
links. ref #2679
Thanks for @tdas14 for initial code.