-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: "justify" parameter in to_html #17527
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
Comments
Presumably all these work? https://developer.mozilla.org/en-US/docs/Web/CSS/text-align +1 for anything that’s valid html / css |
@TomAugspurger : I believe that's only a subset according to df = DataFrame()
print(df.to_html(justify="augspurger")) # your name is also valid
<table border="1" class="dataframe">
<thead>
<tr style="text-align: augspurger;">
<th></th>
</tr>
</thead>
<tbody>
</tbody>
</table> |
Looks like we need to do some validation on the |
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Oct 3, 2017
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Oct 3, 2017
gfyoung
added a commit
that referenced
this issue
Oct 3, 2017
BUG: Validate the justify parameter in to_html Closes gh-17527.
ghost
pushed a commit
to reef-technologies/pandas
that referenced
this issue
Oct 16, 2017
BUG: Validate the justify parameter in to_html Closes pandas-devgh-17527.
alanbato
pushed a commit
to alanbato/pandas
that referenced
this issue
Nov 10, 2017
BUG: Validate the justify parameter in to_html Closes pandas-devgh-17527.
No-Stream
pushed a commit
to No-Stream/pandas
that referenced
this issue
Nov 28, 2017
BUG: Validate the justify parameter in to_html Closes pandas-devgh-17527.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Travis docs for to_html states that the only accepted parameters for
justify
areleft
andright
.However, I stumbled upon the fact that you can also pass in
center
, and it will work just fine (i.e. the cell elements and headers are centered), as evidenced by the code:pandas/pandas/io/formats/format.py
Lines 1215 to 1217 in fa557f7
@TomAugspurger : Should we continue to allow only
left
andright
or should we expand to acceptcenter
? I'm personally up for the latter but wanted to get consensus first.The text was updated successfully, but these errors were encountered: