You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Work around a bug in pandas.DataFrame.replace to set the color
In the case a original value (e.g. 0-9A-F) was part of a color
defintion, using df.replace{dict} would do a double replace on the
same cell, resulting in colors like "#12345#ABCDEF", which would
then throw an error during plotting.
Using apply(lambda x: replacements[x]) is probably slower, so should
be replaced when the pandas bug is gone.
See pandas-dev/pandas#5338 for the bugreport
in pandas.
0 commit comments