-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: DataFrame.style sparsified MultiIndex #13775
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
Conversation
@@ -314,6 +314,8 @@ Other enhancements | |||
- ``Series.append`` now supports the ``ignore_index`` option (:issue:`13677`) | |||
- ``.to_stata()`` and ``StataWriter`` can now write variable labels to Stata dta files using a dictionary to make column names to labels (:issue:`13535`, :issue:`13536`) | |||
- ``.to_stata()`` and ``StataWriter`` will automatically convert ``datetime64[ns]`` columns to Stata format ``%tc``, rather than raising a ``ValueError`` (:issue:`12259`) | |||
- ``DataFrame.style`` will now render sparsified MultiIndexes (:issue:`11655`) | |||
- ``DataFrame.style`` will now show column names (:issue:``) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use the pr number
@jreback this was undocumented... Adding this section to the notebook. Will push soon. CSS ClassesCertain CSS classes are attached to cells.
|
b23950d
to
a8e50b7
Compare
Current coverage is 85.24% (diff: 100%)@@ master #13775 diff @@
==========================================
Files 140 140
Lines 50415 50440 +25
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 42970 42996 +26
+ Misses 7445 7444 -1
Partials 0 0
|
@@ -314,6 +314,8 @@ Other enhancements | |||
- ``Series.append`` now supports the ``ignore_index`` option (:issue:`13677`) | |||
- ``.to_stata()`` and ``StataWriter`` can now write variable labels to Stata dta files using a dictionary to make column names to labels (:issue:`13535`, :issue:`13536`) | |||
- ``.to_stata()`` and ``StataWriter`` will automatically convert ``datetime64[ns]`` columns to Stata format ``%tc``, rather than raising a ``ValueError`` (:issue:`12259`) | |||
- ``DataFrame.style`` will now render sparsified MultiIndexes (:issue:`11655`) | |||
- ``DataFrame.style`` will now show column names (:issue:`13775`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'column names' -> 'column level names' ? ('column names' sounds like the columns labels itself)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 DataFrame.style
will now show column level names (e.g. DataFrame.columns.names
) (:issue:13775
)
BUG: Fix index class level row MVP Columns too tests
a8e50b7
to
1862b69
Compare
"\n", | ||
"Certain CSS classes are attached to cells.\n", | ||
"\n", | ||
"- Index and Column names include `index_name` and `level<k>` where `k` is its level in a MultiIndex\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would add this documenation to the doc-string as well
1862b69
to
1f85bfa
Compare
BUG: Fix CSS classes for index names Updates doc2 option honor options
1f85bfa
to
7c03a72
Compare
lgtm. merge away. |
git diff upstream/master | flake8 --diff
Notebook comparing
DataFrame._html_repr_
toDataFrame.style
I think we're identical for non-truncated DataFrames. That' has not been implemented in
Styler
yet.Along the way I noticed two other things that ended up needing fixing.
The fixes ended up being pretty intertwined, so I've put them in a single PR. Unfortunately, the commits are a bit jumbled as well :/