-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Styler.applymap(subset=...) breaks promise that "any valid indexer to .loc will work." for mult-index #25858
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
Labels
Milestone
Comments
This looks to work on master now. Could use a test.
|
sofiane87
added a commit
to sofiane87/pandas
that referenced
this issue
Nov 2, 2019
4 tasks
gfyoung
pushed a commit
that referenced
this issue
Nov 5, 2019
Reksbril
pushed a commit
to Reksbril/pandas
that referenced
this issue
Nov 18, 2019
] (pandas-dev#29346) * TST: Adding styler applymap multindex & code test Closes pandas-devgh-25858
proost
pushed a commit
to proost/pandas
that referenced
this issue
Dec 19, 2019
] (pandas-dev#29346) * TST: Adding styler applymap multindex & code test Closes pandas-devgh-25858
proost
pushed a commit
to proost/pandas
that referenced
this issue
Dec 19, 2019
] (pandas-dev#29346) * TST: Adding styler applymap multindex & code test Closes pandas-devgh-25858
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
To quote from the docs on the
subset
keyword argument forStyler.applymap
(https://pandas.pydata.org/pandas-docs/stable/user_guide/style.html) :The code sample demonstrates an indexer for a dataframe with multindex columns that works with .loc, but doesn't work as the
subset
argument toapplymap
. Note that this indexer previously worked in pandas version 0.22, but a regression has been introduced in 0.24.2Expected Output
Expected the indexer to apply the styling the "%" columns, and not throw an error.
Full Backtrace
Output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 2.7.14.final.0
python-bits: 64
OS: Linux
OS-release: 4.19.20-1rodete1-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.24.2
pytest: None
pip: 19.0.3
setuptools: 36.7.1
Cython: None
numpy: 1.16.2
scipy: None
pyarrow: None
xarray: None
IPython: 5.8.0
sphinx: None
patsy: None
dateutil: 2.8.0
pytz: 2018.9
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: 4.2.5
bs4: 4.6.0
html5lib: 0.999999999
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
The text was updated successfully, but these errors were encountered: