-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
to_html(col_space=<int>) does not set min-width style correctly. #25941
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
ArtificialQualia
added a commit
to ArtificialQualia/pandas
that referenced
this issue
Apr 6, 2019
4 tasks
WillAyd
pushed a commit
that referenced
this issue
Apr 29, 2019
|
would probably need to update col_space to take a list or dict. could probably reuse some code used for the formatters parameter. This request is likely to get lost in a closed issue. Can you raise a new issue. |
Sure. Raised issue #28917. |
Any update on how to increase col_space for specific columns only? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code Sample, a copy-pastable example if possible
Problem description
The
col_space
parameter expects an int..pandas/pandas/io/formats/format.py
Lines 47 to 48 in cb89bc0
it should be either px of % for HTML but this raises an error if you try.
gives
TypeError: '>' not supported between instances of 'str' and 'int'
The
<th style="min-width: 100;">
is also applied needlessly to the<th>
tags within<tbody>
Expected Output
Output of
pd.show_versions()
[paste the output of
pd.show_versions()
here below this line]The text was updated successfully, but these errors were encountered: