renamed
Browse files
app.py
CHANGED
@@ -12,8 +12,19 @@ def display_table():
|
|
12 |
}
|
13 |
df = pd.DataFrame(data)
|
14 |
|
|
|
15 |
# Convert the DataFrame to an HTML table string
|
16 |
-
html_table = df.to_html()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
return html_table
|
19 |
|
|
|
12 |
}
|
13 |
df = pd.DataFrame(data)
|
14 |
|
15 |
+
df.index.name = "Rank"
|
16 |
# Convert the DataFrame to an HTML table string
|
17 |
+
html_table = df.to_html(classes="wide_table")
|
18 |
+
|
19 |
+
|
20 |
+
html_content = f"""
|
21 |
+
<style>
|
22 |
+
.wide_table {
|
23 |
+
width: 100%;
|
24 |
+
}
|
25 |
+
</style>
|
26 |
+
{html_table}
|
27 |
+
"""
|
28 |
|
29 |
return html_table
|
30 |
|