File size: 383 Bytes
c5e539b
884a3d8
fc2e67f
c5e539b
 
 
 
 
 
 
 
 
fc2e67f
c5e539b
 
 
 
884a3d8
f62d54a
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import pandas as pd
import gradio as gr

df = pd.DataFrame(
    {
        "A": [14, 4, 5, 4, 1],
        "B": [5, 2, 54, 3, 2],
        "C": [20, 20, 7, 3, 8],
        "D": [14, 3, 6, 2, 6],
        "E": [23, 45, 64, 32, 23],
    }
)

t = df.style.highlight_max(color="lightgreen", axis=0)

with gr.Blocks() as demo:
    gr.Dataframe(t)

if __name__ == "__main__":
    demo.launch()