Hello,
I would like to add borders to specific cells and when adjacent, border the group without internal borders. Here is my code so far...
import pandas as pd
df = pd.DataFrame({"TransNo":[29, 32, 34, 45, 68, 71, 72, 73, 81],
"Type":["Fee", "Sale", "Fee", "Fee", "Sale", "Sale", "Sale", "Sale", "Fee"],
"Amount": [1.2, 10.2, 2.1, 3.1, 15.3, 19.2, 100.5, 97.3, 2.2]})
def border(cell_value):
if cell_value == "Sale":
return "border: solid thin"
df.style.applymap(border)
and here is the output...
![TylerT_0-1681583278221.png TylerT_0-1681583278221.png](https://community.esri.com/t5/image/serverpage/image-id/68100i3AC7A4B4D7CB30F6/image-size/medium?v=v2&px=400)
and here is the markup of the desired output....
![TylerT_1-1681583415694.png TylerT_1-1681583415694.png](https://community.esri.com/t5/image/serverpage/image-id/68101iDB0B26C05C0F7E01/image-size/medium?v=v2&px=400)
The red markup indicating the deletion of internal lines. Any pointers would be appreciated. Thank you.
Tyler