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
Is it possible to use the .data_color method for a subset of the rows?
I have a dataframe where the last row and columns are the sum of the values of each column and row, respectively. It is easy to exclude the last column from the colormap, specifying the column names in columns, but I couldn't figure out how to exclude the last row.
Similar question here. The use cases is specifically to apply colors to a table, factoring in all values into the domain except the Grand Total. It is easy to exclude specific columns with the columns= argument, but there is no such argument for rows. One could compute the palette manually as is done in the underlying code, but it adds another step. In that sense, related to #172 and #173 for this specific use case.
I did a hacky workaround for this here (may not work in many cases, e.g. assumes pandas, expects a list of ints, must be consecutive top-to-bottom rows that only exclude rows from the end of the table):
Is it possible to use the
.data_color
method for a subset of the rows?I have a dataframe where the last row and columns are the sum of the values of each column and row, respectively. It is easy to exclude the last column from the colormap, specifying the column names in
columns
, but I couldn't figure out how to exclude the last row.It should be possible to do it with the summary_rows(), but from the video below, apparently it is not implemented yet (?)
https://www.youtube.com/watch?v=p42Xc6dl3Ek
Thanks!
The text was updated successfully, but these errors were encountered: